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

Usage of challenge threads with forumchannel integration #237

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

mrfreddi007
Copy link

A generalized discord CTF bot that use forum-threads instead of a channel per challenge. Does only work in communitychannels

# > role_id
#
# Challenge
# [gid...]
# > name
# > ctf_id [int, channel ID]
# > chan_id
# > ctf_id [int, thread ID]
Copy link
Author

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]
Copy link
Author

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,
Copy link
Author

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant