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

Fix f-string syntax errors #69

Merged
merged 1 commit into from
Mar 17, 2021
Merged
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
6 changes: 4 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,15 +1219,17 @@ async def set_systemchannel(ctx):
if server_channel:
server_channel = server_channel[0][0]

main_text = (await getchannel(system_channel)).mention if system_channel else 'none'
server_text = (await getchannel(server_channel)).mention if server_channel else 'none'
await ctx.send(
"Define if you are setting up a server or main system channel and"
f" mention the target channel.\n```\n{prefix}systemchannel"
" <main/server> #channelname\n```\nThe server system channel"
" reports errors and notifications related to this server only,"
" while the main system channel is used as a fall-back and for"
" bot-wide errors and notifications.\n\nThe current channels are:\n"
f"**Main:** {(await getchannel(system_channel)).mention if system_channel else 'none'}\n"
f"**Server:** {(await getchannel(server_channel)).mention if server_channel else 'none'}"
f"**Main:** {main_text}\n"
f"**Server:** {server_text}"
)
return

Expand Down