Trying to read in token securely and have it working

testing
sgoudham 5 years ago
parent 4e6c845f2e
commit 6404c6a52d

@ -6,6 +6,8 @@ from discord.ext import commands
client = commands.Bot(command_prefix='~') client = commands.Bot(command_prefix='~')
#token = open("DiscordToken/token.txt", "rt").readline() #token = open("DiscordToken/token.txt", "rt").readline()
with open('DiscordToken/token.txt') as file:
token = file.readline()
# Instantiates a list for all the cogs # Instantiates a list for all the cogs
extensions = ['cogs.WaifuImages', 'cogs.FunCommands'] extensions = ['cogs.WaifuImages', 'cogs.FunCommands']
@ -83,7 +85,7 @@ async def on_command_error(ctx, error):
await message.delete() await message.delete()
client.run('NzE2NzAxNjk5MTQ1NzI4MDk0.XtgJXg.NDNj2I522O0lTm3W357TDVen948') client.run(token)
''' '''

@ -56,8 +56,19 @@ class Fun(commands.Cog):
f"{target.mention} I admire your greatness so much that I consider making a fan club to become your #1 fan (´꒳`)", f"{target.mention} I admire your greatness so much that I consider making a fan club to become your #1 fan (´꒳`)",
f"{target.mention} has no flaws, only special effects :))", f"{target.mention} has no flaws, only special effects :))",
f"{target.mention}'s smile is brighter than sunlight, so smile more often ( ◠‿◠ )", f"{target.mention}'s smile is brighter than sunlight, so smile more often ( ◠‿◠ )",
f"{target.mention} Your smile is so beautiful it blinds me :heart_eyes: :heart_eyes:",
f"", f"",
f"", f"",
f"",
f"",
f"",
f"",
f"",
f"",
f"",
f"",
f"",
] ]
# await ctx.send(random.choice(responses)) # await ctx.send(random.choice(responses))

Loading…
Cancel
Save