tangled
alpha
login
or
join now
isabelroses.com
/
blahaj
1
fork
atom
silly goober bot
1
fork
atom
overview
issues
pulls
pipelines
feat: more commands for the app
isabelroses.com
7 months ago
44072124
ce46e660
+20
-4
3 changed files
expand all
collapse all
unified
split
src
commands
fun
bottom.rs
kittysay.rs
misc
crates.rs
+10
-2
src/commands/fun/bottom.rs
···
4
4
use crate::types::Context;
5
5
6
6
/// Translate your words for the bottoms to understand
7
7
-
#[poise::command(slash_command, guild_only)]
7
7
+
#[poise::command(
8
8
+
slash_command,
9
9
+
install_context = "Guild|User",
10
10
+
interaction_context = "Guild|BotDm|PrivateChannel"
11
11
+
)]
8
12
pub async fn bottomify(ctx: Context<'_>, #[description = "text"] input: String) -> Result<()> {
9
13
let out = bottom::encode_string(&input);
10
14
···
13
17
}
14
18
15
19
/// Translate your words for the tops and normies to understand
16
16
-
#[poise::command(slash_command, guild_only)]
20
20
+
#[poise::command(
21
21
+
slash_command,
22
22
+
install_context = "Guild|User",
23
23
+
interaction_context = "Guild|BotDm|PrivateChannel"
24
24
+
)]
17
25
pub async fn topify(ctx: Context<'_>, #[description = "text"] input: String) -> Result<()> {
18
26
const MAX_LEN: usize = 1994;
19
27
const WRAP: &str = "```";
+5
-1
src/commands/fun/kittysay.rs
···
4
4
use crate::types::Context;
5
5
6
6
/// Make the kitty say something :3
7
7
-
#[poise::command(slash_command, guild_only)]
7
7
+
#[poise::command(
8
8
+
slash_command,
9
9
+
install_context = "Guild|User",
10
10
+
interaction_context = "Guild|BotDm|PrivateChannel"
11
11
+
)]
8
12
pub async fn kittysay(
9
13
ctx: Context<'_>,
10
14
#[description = "say"] input: String,
+5
-1
src/commands/misc/crates.rs
···
49
49
url: String,
50
50
}
51
51
52
52
-
#[poise::command(slash_command)]
52
52
+
#[poise::command(
53
53
+
slash_command,
54
54
+
install_context = "Guild|User",
55
55
+
interaction_context = "Guild|BotDm|PrivateChannel"
56
56
+
)]
53
57
pub async fn crates(ctx: Context<'_>, #[description = "crate"] crt: String) -> Result<()> {
54
58
ctx.defer().await?;
55
59