Example #1
0
 async def reset(self, ctx):
     if ctx.author.id in Data.get_owners():
         self.data = {}
         self.write_data()
         await ctx.send("deleted profiles")
     self.write_data()
     return
Example #2
0
 def is_owner(self, arg):
     # check if a message was sent by the owner
     if type(arg) == Context:
         arg = arg.author.id
     else:
         raise NotImplementedError()
     return arg in Data.get_owners()