Commit 296e4395 authored by IS1_4M's avatar IS1_4M
Browse files

fixed !describeclub for space-dash replacement

parent 3adfa37b
......@@ -147,7 +147,7 @@ class ClubSuite(AbstractChanSuite):
maybe_club = ClubSuite.is_cli(ClubSuite.get_all_clubs(message.channel.guild), message.channel) #''' This will break the program later. message.channel can be a DM channel. find a way to make it so that that wont break the channel'''
if maybe_club == False:
if content.startswith('!describeclub'):
cli = ClubSuite.get_cli(ClubSuite.get_club(ClubSuite.get_all_clubs(message.channel.guild), 'C-' + content[len('!describeclub '):]))
cli = ClubSuite.get_cli(ClubSuite.get_club(ClubSuite.get_all_clubs(message.channel.guild), 'C-' + content[len('!describeclub '):].replace(' ', '-')))
if cli != False:
for pin in await cli.pins():
if pin.content.startswith('DESCRIPTION SET TO: '):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment