MCPcopy Create free account

hub / github.com/Sreyas-Sreelal/Cosmic / functions

Functions33 in github.com/Sreyas-Sreelal/Cosmic

↓ 10 callersFunctionsend_error_msg
( channel_id: ChannelId, title: Option<&str>, content: &str, http: &Http, )
src/utils.rs:48
↓ 6 callersMethodmake_request
(&self)
src/http.rs:18
↓ 4 callersFunctionsend_info_msg
( channel_id: ChannelId, title: Option<&str>, content: &str, http: &Http, )
src/utils.rs:70
↓ 4 callersFunctionsend_message_with_embed
wrappers for sending embeds
src/utils.rs:16
↓ 3 callersFunctionsend_success_msg
( channel_id: ChannelId, title: Option<&str>, content: &str, http: &Http, )
src/utils.rs:59
↓ 2 callersMethodget_torrent_info
get_torrent_info main function which search and grabs torrent details
src/torrent/api.rs:99
↓ 2 callersFunctionget_wiki_summary
scrapes from xml data returned from wikipedia api forced to use xml as json representation of the data by the api is really unpredictable
src/wiki/api.rs:7
↓ 1 callersMethodcheck_connection
check_connection checks the connection status of proxies
src/torrent/api.rs:37
↓ 1 callersMethoddescription
(&self)
src/torrent/types.rs:27
↓ 1 callersMethodgenerate_response
Generates responses for the input according to script defined
src/ai.rs:19
↓ 1 callersFunctionget_memes
get_memes sends request to imgflip api to get a list of memes gets a random meme returns it
src/imgflip/api.rs:9
↓ 1 callersMethodget_proxy
get_proxy() grabs piratebay proxies from https://piratebay-proxylist.se/ returns working proxy url
src/torrent/api.rs:10
↓ 1 callersMethodget_torrent_description
get_torrent_description fetches description of the torrent from the page
src/torrent/api.rs:91
↓ 1 callersMethodget_torrent_magnet
get_torrent_magnet fetches magnet url from the page
src/torrent/api.rs:83
↓ 1 callersMethodget_torrent_name
get_torrent_name fetches page title
src/torrent/api.rs:75
↓ 1 callersMethodget_torrent_url
get_torrent_url gets torrent url from the list of search results always prefers first result
src/torrent/api.rs:51
↓ 1 callersFunctionremove_mention
removes mentions from the message
src/utils.rs:8
↓ 1 callersFunctionsend_warn_msg
( channel_id: ChannelId, title: Option<&str>, content: &str, http: &Http, )
src/utils.rs:37
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/torrent/types.rs:22
Functionmain
()
src/main.rs:20
Functionmeme
(ctx: &mut Context, msg: &Message)
src/command/cmd_meme.rs:9
Methodmessage
(&self, ctx: Context, msg: Message)
src/events.rs:52
Methodnew
(location: &str)
src/ai.rs:12
Methodnew
(title: String, summary: String)
src/wiki/types.rs:9
Functionplay
(ctx: &mut Context, msg: &Message, args: Args)
src/command/cmd_play.rs:13
Methodready
(&self, ctx: Context, data: Ready)
src/events.rs:14
Functionsay
(ctx: &mut Context, msg: &Message, args: Args)
src/command/cmd_say.rs:9
Functionskip
(ctx: &mut Context, msg: &Message)
src/command/cmd_skip.rs:11
Functionstop
(ctx: &mut Context, msg: &Message)
src/command/cmd_stop.rs:11
Functiontest_torrent
()
src/torrent/tests.rs:5
Functiontest_wiki
()
src/wiki/tests.rs:5
Functiontorrent
(ctx: &mut Context, msg: &Message, args: Args)
src/command/cmd_torrent.rs:12
Functionwiki
(ctx: &mut Context, msg: &Message, args: Args)
src/command/cmd_wiki.rs:11