Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sreyas-Sreelal/Cosmic
/ functions
Functions
33 in github.com/Sreyas-Sreelal/Cosmic
⨍
Functions
33
◇
Types & classes
15
↓ 10 callers
Function
send_error_msg
( channel_id: ChannelId, title: Option<&str>, content: &str, http: &Http, )
src/utils.rs:48
↓ 6 callers
Method
make_request
(&self)
src/http.rs:18
↓ 4 callers
Function
send_info_msg
( channel_id: ChannelId, title: Option<&str>, content: &str, http: &Http, )
src/utils.rs:70
↓ 4 callers
Function
send_message_with_embed
wrappers for sending embeds
src/utils.rs:16
↓ 3 callers
Function
send_success_msg
( channel_id: ChannelId, title: Option<&str>, content: &str, http: &Http, )
src/utils.rs:59
↓ 2 callers
Method
get_torrent_info
get_torrent_info main function which search and grabs torrent details
src/torrent/api.rs:99
↓ 2 callers
Function
get_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 callers
Method
check_connection
check_connection checks the connection status of proxies
src/torrent/api.rs:37
↓ 1 callers
Method
description
(&self)
src/torrent/types.rs:27
↓ 1 callers
Method
generate_response
Generates responses for the input according to script defined
src/ai.rs:19
↓ 1 callers
Function
get_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 callers
Method
get_proxy
get_proxy() grabs piratebay proxies from https://piratebay-proxylist.se/ returns working proxy url
src/torrent/api.rs:10
↓ 1 callers
Method
get_torrent_description
get_torrent_description fetches description of the torrent from the page
src/torrent/api.rs:91
↓ 1 callers
Method
get_torrent_magnet
get_torrent_magnet fetches magnet url from the page
src/torrent/api.rs:83
↓ 1 callers
Method
get_torrent_name
get_torrent_name fetches page title
src/torrent/api.rs:75
↓ 1 callers
Method
get_torrent_url
get_torrent_url gets torrent url from the list of search results always prefers first result
src/torrent/api.rs:51
↓ 1 callers
Function
remove_mention
removes mentions from the message
src/utils.rs:8
↓ 1 callers
Function
send_warn_msg
( channel_id: ChannelId, title: Option<&str>, content: &str, http: &Http, )
src/utils.rs:37
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/torrent/types.rs:22
Function
main
()
src/main.rs:20
Function
meme
(ctx: &mut Context, msg: &Message)
src/command/cmd_meme.rs:9
Method
message
(&self, ctx: Context, msg: Message)
src/events.rs:52
Method
new
(location: &str)
src/ai.rs:12
Method
new
(title: String, summary: String)
src/wiki/types.rs:9
Function
play
(ctx: &mut Context, msg: &Message, args: Args)
src/command/cmd_play.rs:13
Method
ready
(&self, ctx: Context, data: Ready)
src/events.rs:14
Function
say
(ctx: &mut Context, msg: &Message, args: Args)
src/command/cmd_say.rs:9
Function
skip
(ctx: &mut Context, msg: &Message)
src/command/cmd_skip.rs:11
Function
stop
(ctx: &mut Context, msg: &Message)
src/command/cmd_stop.rs:11
Function
test_torrent
()
src/torrent/tests.rs:5
Function
test_wiki
()
src/wiki/tests.rs:5
Function
torrent
(ctx: &mut Context, msg: &Message, args: Args)
src/command/cmd_torrent.rs:12
Function
wiki
(ctx: &mut Context, msg: &Message, args: Args)
src/command/cmd_wiki.rs:11