Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed hardcoded bot name to variable #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions kobold.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
from src.tribe import Tribe
from src.world import World


BOT_NAME = 'Lulurnbus#1506'
STATS = ["str", "dex", "con", "int", "wis", "cha"]
STAT_COLOR = {"str": "red", "dex": "white", "con": "black",
"int": "blue", "wis": "green", "cha": "yellow"}
Expand Down Expand Up @@ -6081,7 +6083,7 @@ def check(m, shrug):
if res == None:
break
# Example: 'MyBot#1111'
if str(res[1]) != 'Lulumbus#2714' and (not confirm or res[1] == confirm):
if str(res[1]) != BOT_NAME and (not confirm or res[1] == confirm):
emoji = str(res[0].emoji)
if not isinstance(chan, discord.DMChannel):
await message.remove_reaction(res[0].emoji, res[1])
Expand Down Expand Up @@ -6138,7 +6140,7 @@ def check(m, shrug):
if res == None:
break
# Example: 'MyBot#1111'
if str(res[1]) != 'Lulumbus#2714' and (not confirm or res[1] == confirm):
if str(res[1]) != BOT_NAME and (not confirm or res[1] == confirm):
emoji = str(res[0].emoji)
if not isinstance(chan, discord.DMChannel):
await message.remove_reaction(res[0].emoji, res[1])
Expand Down Expand Up @@ -6248,7 +6250,7 @@ def check(m, shrug):
res = None
if res == None:
break
if str(res[1]) != 'Lulumbus#2714' and (not user or res[1] == user): # Example: 'MyBot#1111'
if str(res[1]) != BOT_NAME and (not user or res[1] == user): # Example: 'MyBot#1111'
emoji = str(res[0].emoji)
if not isinstance(chan, discord.DMChannel):
await message.remove_reaction(res[0].emoji, res[1])
Expand Down