forked from OpenToAllCTF/OTA-Challenge-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for creating private CTF channels
Fix issue OpenToAllCTF#125 Add util method for parsing args for options. This method takes an array and searches for any strings in that array beginning with a hyphen. If it encounters such a string it strips the leading punctuation from that string and puts it into a new array. After iterating the given array it returns a 2-tuple containing the new array of options sans leading punctuation and the original array minus those extracted options.
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters