Merge branch 'dev' into 'master'
bump pycord version + fix for intents See merge request aaron-riedel/shbot!9
This commit is contained in:
commit
6f902ce78b
2 changed files with 4 additions and 7 deletions
9
bot.py
9
bot.py
|
@ -19,16 +19,13 @@ def right(s, amount):
|
||||||
def mid(s, offset, amount):
|
def mid(s, offset, amount):
|
||||||
return s[offset:offset+amount]
|
return s[offset:offset+amount]
|
||||||
|
|
||||||
intents = discord.Intents(
|
intents = discord.Intents.default()
|
||||||
guilds=True,
|
intents.members = True
|
||||||
members=True,
|
intents.message_content = True
|
||||||
messages=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
token = os.environ['TOKEN']
|
token = os.environ['TOKEN']
|
||||||
prefix = os.environ['PREFIX']
|
prefix = os.environ['PREFIX']
|
||||||
bot = commands.Bot(intents=intents, command_prefix=prefix)
|
bot = commands.Bot(intents=intents, command_prefix=prefix)
|
||||||
client = discord.Client()
|
|
||||||
|
|
||||||
admin_role=261603488331595776
|
admin_role=261603488331595776
|
||||||
member_role=261603747711418371
|
member_role=261603747711418371
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
py-cord==2.0.0b4
|
py-cord==2.0.0b5
|
Loading…
Reference in a new issue