Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 24f11cf

Browse files
Update bot.py
minor fixes
1 parent dd9db8e commit 24f11cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def work(ctx, *, nick):
4747
server = ctx.channel.name
4848
if nick.lower() == MY_NICKS[server].lower():
4949
session = sessions[server]
50-
queue == "+" if ctx.invoked_with.lower() == "work+" else ""
50+
queue = "+" if ctx.invoked_with.lower() == "work+" else ""
5151
sessions[server] = login.double_click(server, queue, session)
5252

5353
@bot.command()
@@ -493,7 +493,7 @@ async def on_message(message):
493493
if output:
494494
if len(output) > 100 or "http" in output:
495495
embed = discord.Embed()
496-
embed.add_field(name=os.environ['nick'], value=output[:1000])
496+
embed.add_field(name=MY_NICKS[ctx.channel.name].lower(), value=output[:1000])
497497
if output[1000:]:
498498
embed.add_field(name="Page 2", value=output[1000:2000])
499499
# Sending the output (all prints) to your channel.

0 commit comments

Comments
 (0)