Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Person314159/cs221bot
/ functions
Functions
168 in github.com/Person314159/cs221bot
⨍
Functions
168
◇
Types & classes
21
Method
die
(self, ctx: commands.Context)
cogs/meta.py:17
Method
draw_bst
(root: Node)
cogs/tree.py:138
Method
due_day
(self)
util/canvas_handler.py:109
Method
due_week
(self)
util/canvas_handler.py:101
Method
emojify
`!emojify` __`Emoji text generator`__ **Usage:** !emojify <text> **Examples:** `!emojify hello` prints "hello" with
cogs/commands.py:61
Method
ensure_voice_state
(self, ctx: commands.Context)
cogs/music.py:550
Method
filter_tag
Sorts posts by instructor or student and append it to the respective array of posts
util/piazza_handler.py:303
Method
get_embeds
Returns a list of Discord embeds to send to live channels.
cogs/canvas.py:458
Method
get_field_value
This function returns a string that can be added to a Discord embed as a field's value. The returned string contains the modu
cogs/canvas.py:391
Method
get_node
(num: int)
cogs/tree.py:124
Method
get_recent_notes
Fetches `fetch_min` posts, filters out non-important (not instructor notes or pinned) posts and returns an array of corresponding pos
util/piazza_handler.py:327
Method
guild
(self)
util/piazza_handler.py:92
Method
guild
(self)
util/canvas_handler.py:77
Method
help
`!help` __`Returns list of commands or usage of command`__ **Usage:** !help [optional cmd] **Examples:** `!help` [e
cogs/meta.py:22
Method
info
(self, ctx: commands.Context)
cogs/canvas.py:260
Method
insert
(subroot: Node, num: int)
cogs/tree.py:69
Method
joinrole
`!joinrole` __`Adds a role to yourself`__ **Usage:** !joinrole [role name] **Examples:** `!joinrole Study Group` ad
cogs/commands.py:81
Method
latex
`!latex` __`LaTeX equation render`__ **Usage:** !latex <equation> **Examples:** `!latex $\\frac{a}{b}$` [img]
cogs/commands.py:137
Method
leave
`!leave` __`Leaves voice channel`__ **Aliases**: l **Usage:** !leave **Examples:** `!leave` leaves the curr
cogs/music.py:289
Method
leaverole
`!leaverole` __`Removes an existing role from yourself`__ **Usage:** !leave [role name] **Examples:** `!leaverole S
cogs/commands.py:158
Method
live
`!live` Enables course tracking for the channel the command is invoked in.
cogs/canvas.py:154
Method
live_channels
(self)
util/canvas_handler.py:85
Method
loop
(self)
cogs/music.py:205
Method
loop
`!loop` __`Loops current song`__ **Usage:** !loop **Examples:** `!loop` loops current song
cogs/music.py:308
Function
on_command_error
(ctx: commands.Context, error: commands.CommandError)
cs221bot.py:108
Function
on_message
(message: discord.Message)
cs221bot.py:78
Function
on_message_edit
(before: discord.Message, after: discord.Message)
cs221bot.py:73
Function
on_ready
()
cs221bot.py:62
Method
pause
`!pause` __`Pause song`__ **Usage:** !pause **Examples:** `!pause` pauses current song
cogs/music.py:341
Method
piazza_handler
(self)
util/discord_handler.py:30
Method
piazza_id
(self)
util/piazza_handler.py:84
Method
piazza_url
(self)
util/piazza_handler.py:68
Method
pinit
`!pinit` _ `course name` _ _ `piazza id` _ **Usage:** !pinit <course name> <piazza id> **Examples:** `!pinit CPSC22
cogs/piazza.py:41
Method
play_next_song
(self, error=None)
cogs/music.py:245
Method
poll
`!poll` __`Poll generator`__ **Usage:** !poll <question | check | end> | <option> | <option> | [option] | [...] **Examples:
cogs/commands.py:189
Method
ppinned
`!ppinned` **Usage:** !ppinned **Examples:** `!ppinned` sends a list of the Piazza's pinned posts to the calling ch
cogs/piazza.py:116
Method
pread
`!pread` __`post id`__ **Usage:** !pread <post id> **Examples:** `!pread 828` returns an embed with the [post](http
cogs/piazza.py:143
Method
ptest
`!ptest` **Usage:** !ptest **Examples:** `!ptest` simulates a single call of `send_pupdate` to ensure the set-up wa
cogs/piazza.py:168
Method
ptrack
`!ptrack` __`Tracks Piazza posts in channel`__ **Usage:** !ptrack **Examples:** `!ptrack` adds the current channel'
cogs/piazza.py:70
Method
puntrack
`!puntrack` __`Untracks Piazza posts in channel`__ **Usage:** !puntrack **Examples:** `!puntrack` removes the curre
cogs/piazza.py:93
Method
purge
`!purge` __`purges all messages satisfying conditions from the last specified number of messages in channel.`__ Usage: !purge <amoun
cogs/commands.py:293
Method
queue
`!queue` __`Song queue`__ **Aliases:** q **Usage:** !queue **Examples:** `!queue` shows current queue
cogs/music.py:393
Method
reload
(self, ctx: commands.Context, *modules: str)
cogs/meta.py:55
Method
remove
(self, index: int)
cogs/music.py:184
Method
render_board
(board: chess.Board)
cogs/games.py:47
Method
resume
`!resume` __`Resume song`__ **Usage:** !resume **Examples:** `!resume` resumes current song
cogs/music.py:443
Function
setup
(bot: commands.Bot)
cogs/serverstats.py:72
Function
setup
(bot: commands.Bot)
cogs/meta.py:75
Function
setup
(bot: commands.Bot)
cogs/commands.py:485
Function
setup
(bot: commands.Bot)
cogs/tree.py:254
Function
setup
(bot: commands.Bot)
cogs/games.py:94
Function
setup
(bot: commands.Bot)
cogs/piazza.py:252
Function
setup
(bot: commands.Bot)
cogs/canvas.py:534
Function
setup
(bot: commands.Bot)
cogs/music.py:559
Method
shuffle
(self)
cogs/music.py:181
Method
shut
(self, ctx: commands.Context)
cogs/commands.py:373
Method
skip
(self)
cogs/music.py:251
Method
skip
`!skip` __`Skip song`__ **Aliases:** s **Usage:** !skip **Examples:** `!skip` skips current song *
cogs/music.py:477
Method
timings
(self)
util/canvas_handler.py:93
Method
track
`!track <course IDs...>` Add the courses with given IDs to the list of courses being tracked. Note that you will only receiv
cogs/canvas.py:50
Method
unlive
`!unlive` Disables course tracking for the channel the command is invoked in.
cogs/canvas.py:189
Method
untrack
`!untrack <course IDs...>` Remove the courses with given IDs from the list of courses being tracked.
cogs/canvas.py:87
Method
update_embed
Adds a field to embed containing information about given module. The field includes the module's name or title, as well as a
cogs/canvas.py:413
Method
userstats
`!userstats` __`Check user profile and stats`__ **Usage:** !userstats [USER] **Examples:** `!userstats abc#1234` [e
cogs/commands.py:396
Method
volume
(self)
cogs/music.py:213
Method
volume
`!volume` __`Change volume`__ **Usage:** !volume <volume %> **Examples:** `!volume 5` changes volume to 5%
cogs/music.py:530
Method
votes
`!votes` __`Top votes for server icon`__ **Usage:** !votes **Examples:** `!votes` returns top 5 icons sorted by sco
cogs/commands.py:443
Method
write_modules
Stores the ID of all modules in file with given path.
cogs/canvas.py:449
← previous
101–168 of 168, ranked by callers