-
Notifications
You must be signed in to change notification settings - Fork 7
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
Usage of challenge threads with forumchannel integration #237
base: master
Are you sure you want to change the base?
Conversation
…o message to join threads. Also made a command to list users working a challenge. Trying a fix for naming collisions for both teams and challenges
…o message to join threads. Also made a command to list users working a challenge. Trying a fix for naming collisions for both teams and challenges
# > role_id | ||
# | ||
# Challenge | ||
# [gid...] | ||
# > name | ||
# > ctf_id [int, channel ID] | ||
# > chan_id | ||
# > ctf_id [int, thread ID] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Command channel id
@@ -182,7 +208,7 @@ class CtfTeam: | |||
|
|||
@staticmethod | |||
async def create(guild, name): | |||
names = [role.name for role in guild.roles] + guild.channels | |||
names = [role.name for role in guild.roles] + [channel.name for channel in guild.channels] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could probably fix this to work with new namingscheme
newName = thread.name.replace("❌","✅") | ||
await thread.edit( | ||
name=newName, | ||
archived=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not needed
self.ctfname = "" | ||
|
||
self.limit = 20 | ||
self.limit = 400 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there even a limit?
A generalized discord CTF bot that use forum-threads instead of a channel per challenge. Does only work in communitychannels