summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-04-06 14:59:05 -0400
committerseth <[email protected]>2023-04-07 03:42:48 -0400
commit85c391286f6cf5fc9eb31fd2d6886250f9a03c6c (patch)
treea07bd8752f25b87511b7c1f47577e64470aba37f
parent9a1a1b791aeb169dcade5c46862ea6eee060350a (diff)
move long constants to their own file
-rw-r--r--src/consts.rs63
-rw-r--r--src/main.rs3
-rw-r--r--src/utils.rs65
3 files changed, 66 insertions, 65 deletions
diff --git a/src/consts.rs b/src/consts.rs
new file mode 100644
index 0000000..b5bbb7c
--- /dev/null
+++ b/src/consts.rs
@@ -0,0 +1,63 @@
+pub const TEAMOJIS: [&str; 15] = [
+ "<:teawiecry:1056438041872433303>",
+ "<:teawiederp:1056438043109757018>",
+ "<:teawiedizzy:1056438044149960794>",
+ "<:teawienerdcroppedanddownsized:1056438150123233320>",
+ "<:teawieneutral:1056438044930084928>",
+ "<a:teawiepet:1056438324392374400>",
+ "<a:teawiepetfast:1056438325445136414>",
+ "<a:teawiepop:1066240491806531625>",
+ "<:teawiesmile:1056438046440042546>",
+ "<:teawiesmug:1056438047362781216>",
+ "<:teawiestarstruck:1056438048721744022>",
+ "<:tei:1066249455281655908>",
+ "<:wavy:1066518302974812180>",
+ "<:wie:1066249592489902080>",
+ "<:manythoughtsheadfull:1065887153399283742>",
+];
+
+pub const RESPONSES: [&str; 20] = [
+ "soon",
+ "maybe",
+ "perhaps",
+ "elaborate",
+ "Twitter's Recommendation Algorithm",
+ // i was lazy here
+ "<:teawiecry:1056438041872433303>",
+ "<:teawiederp:1056438043109757018>",
+ "<:teawiedizzy:1056438044149960794>",
+ "<:teawienerdcroppedanddownsized:1056438150123233320>",
+ "<:teawieneutral:1056438044930084928>",
+ "<a:teawiepet:1056438324392374400>",
+ "<a:teawiepetfast:1056438325445136414>",
+ "<a:teawiepop:1066240491806531625>",
+ "<:teawiesmile:1056438046440042546>",
+ "<:teawiesmug:1056438047362781216>",
+ "<:teawiestarstruck:1056438048721744022>",
+ "<:tei:1066249455281655908>",
+ "<:wavy:1066518302974812180>",
+ "<:wie:1066249592489902080>",
+ "<:manythoughtsheadfull:1065887153399283742>",
+];
+
+pub const LORE: [&str; 19] = [
+ "Teawie is made of silly string and blood.",
+ "Teawie has the mentality of an eight year old, but no discernable age.",
+ "Teawie can change size to fit into tight spaces. Although prefers to be small most of the time.",
+ "Teawie is blue flavored. The color specifically.",
+ "Teawie produces asexually via mitosis and in other cells.",
+ "Teawie cannot be physically damaged, and if put into a blender of some sort, will become stretchy.",
+ "Teawie has one tooth, but originally had a full set. These were lost due to him constantly eating stuff he probably shouldn't, such as computer hardware.",
+ "Teawie smells like cotton candy and fiberglass insulation.",
+ "Teawie at a base \"knowledge level\", can only repeat his name. However this can be changed if Teawie inherets \"strings\" of information from a host.",
+ "Teawie can \"infect\" other cells and turn them into Teawie.",
+ "Teawie has a gun, but the only bullets it has is smaller Teawies. They have the same attributes as Teawie, so they perform mitosis to keep the clip stocked.",
+ "The gun resembles the Ray Gun from the Call of Duty series. However this gun is blue rather than red.",
+ "Teawie \"bullets\" typically lodge into parts of a body and proceed to infect the victim. If a Teawie ends up lodged into the brain, Teawie will be inside the mind of the user, reigning pure terror until the victim passes on. Teawie will pilot the victim like a meat suit until decomposition fully occurs, and then find a new host.",
+ "A Teawie \"bullet\" will usually kill the host upon impact, However if the host survives, they will exhibit symptoms such as lightheadedness, fainting, fatigue, delusions, mental confusion and decline, disorientation, hallucinations and eventually death.",
+ "If a host possesses particular \"strings\" of information that a Teawie does not currently possess, Teawie will add those current strings to himself once the host expires. Essentially giving Teawie the host's memories and knowledge. This starts to debilitate overtime. Eventually ending right back where the Teawie started.",
+ "Teawie is capable of infecting non-organic material such as a Personal Computer. If infecting something with quite a bit of power, Teawie will inheret \"strings\" from the object and become more powerful as a result.",
+ "Teawie himself isnt radioactive however some Teawies have a pretty bad habit of being in or around places with incredibly high radiation.",
+ "Teawie has a Go-Kart that he will sometimes drive around in, however due to being mentally eight years old at a base \"knowledge level\", is not good at all with driving, however despite numerous crashes, ends up unscathed.",
+ "Teawie will \"insert\" himself into various media while trying to move from host to host.",
+];
diff --git a/src/main.rs b/src/main.rs
index 4565bd4..89a686c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -10,6 +10,7 @@ use std::{env, vec};
mod api;
mod commands;
+mod consts;
mod utils;
const GUILD: u64 = 1055663552679137310;
@@ -35,7 +36,7 @@ impl EventHandler for Handler {
let mut echo_msgs = vec!["🗿", "Twitter's Recommendation Algorithm"];
- for emoji in utils::TEAMOJIS {
+ for emoji in consts::TEAMOJIS {
// i was also lazy here
echo_msgs.push(emoji);
}
diff --git a/src/utils.rs b/src/utils.rs
index 27b6dba..db5a5c4 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -1,3 +1,4 @@
+use crate::consts::*;
use include_dir::{include_dir, Dir};
use rand::seq::SliceRandom;
use std::collections::HashMap;
@@ -6,70 +7,6 @@ use std::vec;
const CHAR_LIMIT: usize = 2000;
const FILES: Dir = include_dir!("src/include");
-pub const TEAMOJIS: [&str; 15] = [
- "<:teawiecry:1056438041872433303>",
- "<:teawiederp:1056438043109757018>",
- "<:teawiedizzy:1056438044149960794>",
- "<:teawienerdcroppedanddownsized:1056438150123233320>",
- "<:teawieneutral:1056438044930084928>",
- "<a:teawiepet:1056438324392374400>",
- "<a:teawiepetfast:1056438325445136414>",
- "<a:teawiepop:1066240491806531625>",
- "<:teawiesmile:1056438046440042546>",
- "<:teawiesmug:1056438047362781216>",
- "<:teawiestarstruck:1056438048721744022>",
- "<:tei:1066249455281655908>",
- "<:wavy:1066518302974812180>",
- "<:wie:1066249592489902080>",
- "<:manythoughtsheadfull:1065887153399283742>",
-];
-
-const RESPONSES: [&str; 20] = [
- "soon",
- "maybe",
- "perhaps",
- "elaborate",
- "Twitter's Recommendation Algorithm",
- // i was lazy here
- "<:teawiecry:1056438041872433303>",
- "<:teawiederp:1056438043109757018>",
- "<:teawiedizzy:1056438044149960794>",
- "<:teawienerdcroppedanddownsized:1056438150123233320>",
- "<:teawieneutral:1056438044930084928>",
- "<a:teawiepet:1056438324392374400>",
- "<a:teawiepetfast:1056438325445136414>",
- "<a:teawiepop:1066240491806531625>",
- "<:teawiesmile:1056438046440042546>",
- "<:teawiesmug:1056438047362781216>",
- "<:teawiestarstruck:1056438048721744022>",
- "<:tei:1066249455281655908>",
- "<:wavy:1066518302974812180>",
- "<:wie:1066249592489902080>",
- "<:manythoughtsheadfull:1065887153399283742>",
-];
-
-const LORE: [&str; 19] = [
- "Teawie is made of silly string and blood.",
- "Teawie has the mentality of an eight year old, but no discernable age.",
- "Teawie can change size to fit into tight spaces. Although prefers to be small most of the time.",
- "Teawie is blue flavored. The color specifically.",
- "Teawie produces asexually via mitosis and in other cells.",
- "Teawie cannot be physically damaged, and if put into a blender of some sort, will become stretchy.",
- "Teawie has one tooth, but originally had a full set. These were lost due to him constantly eating stuff he probably shouldn't, such as computer hardware.",
- "Teawie smells like cotton candy and fiberglass insulation.",
- "Teawie at a base \"knowledge level\", can only repeat his name. However this can be changed if Teawie inherets \"strings\" of information from a host.",
- "Teawie can \"infect\" other cells and turn them into Teawie.",
- "Teawie has a gun, but the only bullets it has is smaller Teawies. They have the same attributes as Teawie, so they perform mitosis to keep the clip stocked.",
- "The gun resembles the Ray Gun from the Call of Duty series. However this gun is blue rather than red.",
- "Teawie \"bullets\" typically lodge into parts of a body and proceed to infect the victim. If a Teawie ends up lodged into the brain, Teawie will be inside the mind of the user, reigning pure terror until the victim passes on. Teawie will pilot the victim like a meat suit until decomposition fully occurs, and then find a new host.",
- "A Teawie \"bullet\" will usually kill the host upon impact, However if the host survives, they will exhibit symptoms such as lightheadedness, fainting, fatigue, delusions, mental confusion and decline, disorientation, hallucinations and eventually death.",
- "If a host possesses particular \"strings\" of information that a Teawie does not currently possess, Teawie will add those current strings to himself once the host expires. Essentially giving Teawie the host's memories and knowledge. This starts to debilitate overtime. Eventually ending right back where the Teawie started.",
- "Teawie is capable of infecting non-organic material such as a Personal Computer. If infecting something with quite a bit of power, Teawie will inheret \"strings\" from the object and become more powerful as a result.",
- "Teawie himself isnt radioactive however some Teawies have a pretty bad habit of being in or around places with incredibly high radiation.",
- "Teawie has a Go-Kart that he will sometimes drive around in, however due to being mentally eight years old at a base \"knowledge level\", is not good at all with driving, however despite numerous crashes, ends up unscathed.",
- "Teawie will \"insert\" himself into various media while trying to move from host to host.",
-];
-
/*
* chooses a random response out of our options
*/