mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
bump version to 1.5.0+
This commit is contained in:
parent
5d10258609
commit
0f8e655187
2 changed files with 20 additions and 4 deletions
22
bot.py
22
bot.py
|
@ -61,15 +61,31 @@ class Bot(Bot):
|
||||||
def main():
|
def main():
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
kwargs = dict(guild_subscriptions=False, request_offline_members=False)
|
|
||||||
|
|
||||||
if len(sys.argv) < 3:
|
if len(sys.argv) < 3:
|
||||||
print('Usage:', sys.argv[0], '<shard count> <hyphen-separated list of shard IDs>', file=sys.stderr)
|
print('Usage:', sys.argv[0], '<shard count> <hyphen-separated list of shard IDs>', file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
# we place these lines up here instead of inline in order to improve tracebacks,
|
||||||
|
# as python tracebacks do not drill down to specific lines of a multi-line expression
|
||||||
shard_count = int(sys.argv[1])
|
shard_count = int(sys.argv[1])
|
||||||
shard_ids = list(map(int, sys.argv[2].split('-')))
|
shard_ids = list(map(int, sys.argv[2].split('-')))
|
||||||
Bot(**kwargs, shard_count=shard_count, shard_ids=shard_ids).run()
|
|
||||||
|
Bot(
|
||||||
|
intents=discord.Intents(
|
||||||
|
guilds=True,
|
||||||
|
# we hardly need DM support but it's helpful to be able to run the help/support commands in DMs
|
||||||
|
messages=True,
|
||||||
|
# we don't need DM reactions because we don't ever paginate in DMs
|
||||||
|
guild_reactions=True,
|
||||||
|
emojis=True,
|
||||||
|
# everything else, including `members` and `presences`, is implicitly false.
|
||||||
|
),
|
||||||
|
chunk_guilds_at_startup=False,
|
||||||
|
member_cache_flags=discord.MemberCacheFlags.none(),
|
||||||
|
|
||||||
|
shard_count=shard_count,
|
||||||
|
shard_ids=shard_ids,
|
||||||
|
).run()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
aioec>=0.6.0
|
aioec>=0.6.0
|
||||||
aiohttp_socks
|
aiohttp_socks
|
||||||
bot_bin>=1.5.0,<2.0.0
|
bot_bin>=1.5.0,<2.0.0
|
||||||
discord.py>=1.4.0,<2.0.0
|
discord.py>=1.5.0,<2.0.0
|
||||||
jishaku
|
jishaku
|
||||||
wand
|
wand
|
||||||
|
|
Loading…
Reference in a new issue