def setup(settings):
print("First time setup, prepare your anus for some questions.")
token = input("What's your Discord token? (To see how to get it go to https://github.com/PlanetTeamSpeakk/DiscordSelfBot#token)\n")
if token.startswith("\""):
token = token[1:]
if token.endswith("\""):
token = token[:(len(token) - 1)]
prefix = input("What should your prefix be?\n")
invite = input("What's the permanent invite link for you Discord server? Type None if you don't have one.\n")
settings['token'] = token
settings['prefix'] = prefix
settings['invite'] = invite
bot = commands.Bot(command_prefix=prefix, description=description, self_bot=True)
settings_file = None
with open("data/dsb/settings.json", "w") as settings_file:
json.dump(settings, settings_file, indent=4, sort_keys=True, separators=(',', ' : '))
print("You're all set! Bot is starting, don't mind the unclosed client session part, just wait a bit.")
评论列表
文章目录