minor formatting
This commit is contained in:
parent
75dd4f796e
commit
36485fbda8
1 changed files with 4 additions and 4 deletions
8
bot.py
8
bot.py
|
|
@ -38,14 +38,14 @@ class Bot(nerimity.Client):
|
||||||
if user.id == self.owner_id: return True
|
if user.id == self.owner_id: return True
|
||||||
else: return False
|
else: return False
|
||||||
|
|
||||||
async def _process_commands(self, message: nerimity.Message):
|
|
||||||
if message.author.id == self.account.id: return
|
|
||||||
await super()._process_commands(message)
|
|
||||||
|
|
||||||
def _process_slash_commands(self, message: nerimity.Message):
|
def _process_slash_commands(self, message: nerimity.Message):
|
||||||
if message.author.id == self.account.id: return
|
if message.author.id == self.account.id: return
|
||||||
super()._process_slash_commands(message)
|
super()._process_slash_commands(message)
|
||||||
|
|
||||||
|
async def _process_commands(self, message: nerimity.Message):
|
||||||
|
if message.author.id == self.account.id: return
|
||||||
|
await super()._process_commands(message)
|
||||||
|
|
||||||
async def init_db(self):
|
async def init_db(self):
|
||||||
print("Initializing database...")
|
print("Initializing database...")
|
||||||
self.db = await aiosqlite.connect(self.db_file)
|
self.db = await aiosqlite.connect(self.db_file)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue