# 需要导入模块: import discord [as 别名]# 或者: from discord importActivity[as 别名]defbefore_loop_presence(self):awaitself.bot.wait_for_connected() logger.line() activity, status =awaitself.set_presence()ifactivityisnotNone: msg =f"Activityset to:{activity.type.name.capitalize()}"ifactivi...
In a terminal, run git clone https://github.com/random-person-001/discordstats.git && cd discordstats You'll need a discord token to get the bot running. Rename exampleconfig.toml to config.toml and put the token in there. Then run pipenv install and pipenv run python src/main.py Your...