Compare commits
8 Commits
v0.1.0-rc.
...
8ac9e17284
Author | SHA1 | Date | |
---|---|---|---|
8ac9e17284 | |||
79a51d5e93 | |||
1c906c2126 | |||
207dc6cae7 | |||
63e8cde861 | |||
d4c02ee54b | |||
93ccc7cd69 | |||
4f610fc55c
|
@@ -112,7 +112,7 @@ class Admin(commands.Cog):
|
||||
amount: int,
|
||||
user: User,
|
||||
):
|
||||
if ctx.user.id in self.client.config["bot"]["owners"]:
|
||||
if ctx.user.id in self.client.owner_ids:
|
||||
logging.info(
|
||||
"User %s removed %s message(s) in %s",
|
||||
ctx.user.id,
|
||||
@@ -163,7 +163,7 @@ class Admin(commands.Cog):
|
||||
)
|
||||
async def reboot_cmd(self, ctx: ApplicationContext):
|
||||
await ctx.defer(ephemeral=True)
|
||||
if ctx.user.id in self.client.config["bot"]["owners"]:
|
||||
if ctx.user.id in self.client.owner_ids:
|
||||
logging.info("Calling shutdown initiated by %s", guild_name(ctx.user))
|
||||
await ctx.respond(
|
||||
embed=Embed(
|
||||
|
@@ -35,7 +35,7 @@ class Data(commands.Cog):
|
||||
async def data_export_cmd(self, ctx: ApplicationContext, kind: str):
|
||||
await ctx.defer()
|
||||
holo_user = HoloUser(ctx.author)
|
||||
if (ctx.user.id in self.client.config["bot"]["owners"]) or (
|
||||
if (ctx.user.id in self.client.owner_ids) or (
|
||||
await holo_user.is_council(ctx.author)
|
||||
):
|
||||
logging.info(
|
||||
@@ -101,7 +101,7 @@ class Data(commands.Cog):
|
||||
async def data_migrate_cmd(self, ctx: ApplicationContext, kind: str):
|
||||
await ctx.defer()
|
||||
holo_user = HoloUser(ctx.author)
|
||||
if (ctx.user.id in self.client.config["bot"]["owners"]) or (
|
||||
if (ctx.user.id in self.client.owner_ids) or (
|
||||
await holo_user.is_council(ctx.author)
|
||||
):
|
||||
logging.info(
|
||||
|
2
main.py
2
main.py
@@ -67,7 +67,7 @@ def main():
|
||||
|
||||
try:
|
||||
scheduler.start()
|
||||
client.run(config_get_sync("token"))
|
||||
client.run(config_get_sync("bot_token", "bot"))
|
||||
except KeyboardInterrupt:
|
||||
scheduler.shutdown()
|
||||
exit()
|
||||
|
@@ -1,8 +1,8 @@
|
||||
aiofiles==23.2.1
|
||||
aiofiles==24.1.0
|
||||
apscheduler==3.10.4
|
||||
pymongo~=4.7.3
|
||||
pymongo~=4.9.1
|
||||
requests~=2.32.3
|
||||
ujson~=5.10.0
|
||||
WaifuPicsPython==0.2.0
|
||||
--extra-index-url https://git.end-play.xyz/api/packages/profitroll/pypi/simple
|
||||
libbot[speed,pycord]==3.2.2
|
||||
libbot[speed,pycord]==3.2.3
|
Reference in New Issue
Block a user