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='~')
#token = open("DiscordToken/token.txt", "rt").readline()
with open('DiscordToken/token.txt') as file:
token = file.readline()
# Instantiates a list for all the cogs
extensions = ['cogs.WaifuImages', 'cogs.FunCommands']
@ -83,7 +85,7 @@ async def on_command_error(ctx, error):
await message.delete()
client.run('NzE2NzAxNjk5MTQ1NzI4MDk0.XtgJXg.NDNj2I522O0lTm3W357TDVen948')
client.run(token)
'''

@ -48,7 +48,7 @@ class Fun(commands.Cog):
@commands.has_any_role('Hamothy', "izzy")
async def compliment(self, ctx, target: discord.Member):
responses = [
f"{target.mention} is the most adorable uwu :heart_eyes: :heart_eyes: ",
f"{target.mention} is the most adorable uwu :heart_eyes: :heart_eyes:",
f"{target.mention} You have my ENTIRE HEART UvU",
f"{target.mention} Hun you're CUTE UwU :pleading_face: :flushed: :pleading_face: :flushed: :pleading_face:",
f"I love {target.mention} so so much :heartbeat: :heartbeat: :heartbeat: ",
@ -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} has no flaws, only special effects :))",
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"",
]
# await ctx.send(random.choice(responses))

Loading…
Cancel
Save