Skip to content

Instantly share code, notes, and snippets.

@vcokltfre
Last active November 29, 2020 22:27
Show Gist options
  • Save vcokltfre/57b860cbde5c6ba7cda8b3023147c07d to your computer and use it in GitHub Desktop.
Save vcokltfre/57b860cbde5c6ba7cda8b3023147c07d to your computer and use it in GitHub Desktop.

Corsika

Corsika is a Discord bot focused on utilities such as lookups and finding messages. It is designed to be powerful, not beginner friendly. The prefix is &, please visit the support server for more support if needed: https://discord.gg/xJvBJndVPJ


Commands will be presented in the following format:

topLevelCommandOrGroup [alias1, alias2]
  subcommand1
  subcommand2
    arg1Option1
    arg1Option2
      arg2

{a|b} means you can choose either a or b
<name: str> means name is a required argument of type string
<name: str | id: int> means that is a required argument, you can either provide a string (name) or integer (id)
[name: str] means name is an optional argument of type string, the same rules for required arguments apply to optional args too
--arg or -a means you can use --arg or -a in your command, it is a standalone argument
--arg <id: int> or -a <id: int> means you can use --arg or -a but you must provide a valid integer directly after the argument


Modules:

Tracking

Tracking is for live tracking events with specific search parameters, for example messages containing a phrase posted in a specific channel.

Commands:

track
  message [m, msg, mess]
    {direct|regex}
      <name: str>
        <timeout: int>
          <content: str>
            --channel <id: int>
            --user <id: int>
  join
    {direct|regex}
      <name: str>
        <timeout: int>
          <content: str>

Examples:

&track message direct ExampleName 60 hello
&track message regex ExampleName2 60 h(e|o)llo --user 297045071457681409
&track join direct ExampleJoin 21600 EdmVicii

Info

Info is for looking up various Discord objects, such as Members, Roles, and Channels

Commands:

info [lookup, ?]
  <object: str | object: id | object: discordObject>

member [memberinfo]
  <member: str | member: id | member: discordObject>

role [roleinfo]
  <role: str | role: id | role: discordObject>

channel [channelinfo]
  <channel: str | channel: id | channel: discordObject>

user [userinfo]
  <user: id>
ℹ️ discordObject means anything that shows as a mention in Discord, for example, a member mention: <@id>

Find

Find allows you to search through cached messages for content, using either a plain text base search, or a custom regex, finduc is the same, but searched uncached messages

Commands:

find [locate]
  <query: str>
    -r
    -f

finduc [locateuc]
  <channel: str | channel: id | channel: discordObject>
    <query: str>
      -r
      -l
ℹ️ -r uses regex to search, -f exports the resulting messages to a json file, -l specifies a limit to how many messages will be fetched (min: 500, max: 10000)

If you require any assistance using the bot, please message vcokltfre#6868 on Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment