Skip to content

Commit

Permalink
Update setting.py
Browse files Browse the repository at this point in the history
typo correction
  • Loading branch information
Puilin authored Aug 14, 2021
1 parent c2d7a7a commit 8ea638a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions discord bot/beta v.10.4/cogs/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def check2(reaction, user):
reaction, user = await self.bot.wait_for('reaction_add', timeout=10.0, check=check2)
if str(reaction.emoji) == '✔':
f2 = open("toggling.txt", 'w')
str_list[idx] = lst1[0] + "=" + "false"
str_list[idx] = lst1[0] + "=" + "false" + '\n'
for j in str_list:
f2.write(j)
f2.close()
Expand All @@ -65,7 +65,7 @@ def check2(reaction, user):
reaction, user = await self.bot.wait_for('reaction_add', timeout=10.0, check=check2)
if str(reaction.emoji) == '✔':
f2 = open("toggling.txt", 'w')
str_list[idx] = lst1[0] + "=" + "true"
str_list[idx] = lst1[0] + "=" + "true" + "\n"
for j in str_list:
f2.write(j)
f2.close()
Expand All @@ -79,7 +79,7 @@ def check2(reaction, user):
guild_list = self.bot.guilds
f = open("toggling.txt", 'w')
for i in guild_list:
f.write(str(i.id) + "=true")
f.write(str(i.id) + "=true" + "\n")
f.close()
Setting.toggle(self, ctx)
else:
Expand All @@ -88,4 +88,4 @@ def check2(reaction, user):
pass

def setup(bot):
bot.add_cog(Setting(bot))
bot.add_cog(Setting(bot))

0 comments on commit 8ea638a

Please sign in to comment.