@@ -2,7 +2,6 @@ use super::get_runelite_api_url;
2
2
use crate :: { database:: clan_mates:: ClanMates , jobs:: job_helpers:: get_mongodb} ;
3
3
use anyhow:: { anyhow, Ok } ;
4
4
use capitalize:: Capitalize ;
5
- use rand:: Rng ;
6
5
use reqwest:: StatusCode ;
7
6
use tokio:: time:: sleep;
8
7
@@ -19,14 +18,6 @@ pub async fn get_pb(message: String, player: String, guild_id: u64) -> Result<()
19
18
//Should match whats in RL with spaces and each capitalized.
20
19
println ! ( "Long Boss name is: {}" , trimmed_boss) ;
21
20
22
- //Easter egg
23
- if trimmed_boss. to_lowercase ( ) == "nerdicus" {
24
- let random_pb: f64 = rand:: thread_rng ( ) . gen_range ( 0.50 ..10_000.00 ) ;
25
- let random_pb_round = ( random_pb * 100f64 ) . trunc ( ) / 100.0 ;
26
- let _ = log_pb ( trimmed_boss, player, guild_id, random_pb_round) . await ?; // Await the log_pb function call and assign the result to a variable
27
- return Ok ( ( ) ) ;
28
- }
29
-
30
21
let runelite_api_url = get_runelite_api_url ( ) . await ?;
31
22
let full_url = format ! (
32
23
"{}/chat/pb?name={}&boss={}" ,
@@ -240,6 +231,24 @@ fn get_boss_long_name(message: &String) -> String {
240
231
"hs4" | "hs 4" => "Hallowed Sepulchre Floor 4" ,
241
232
"hs5" | "hs 5" => "Hallowed Sepulchre Floor 5" ,
242
233
234
+ // Colossal Wyrm Basic Agility Course
235
+ "wbac"
236
+ | "cwbac"
237
+ | "wyrmb"
238
+ | "wyrmbasic"
239
+ | "wyrm basic"
240
+ | "colossal basic"
241
+ | "colossal wyrm basic" => "Colossal Wyrm Agility Course (Basic)" ,
242
+
243
+ // Colossal Wyrm Advanced Agility Course
244
+ "waac"
245
+ | "cwaac"
246
+ | "wyrma"
247
+ | "wyrmadvanced"
248
+ | "wyrm advanced"
249
+ | "colossal advanced"
250
+ | "colossal wyrm advanced" => "Colossal Wyrm Agility Course (Advanced)" ,
251
+
243
252
// Prifddinas Agility Course
244
253
"prif" | "prifddinas" => "Prifddinas Agility Course" ,
245
254
@@ -356,7 +365,29 @@ fn get_boss_long_name(message: &String) -> String {
356
365
// lunar chest variants
357
366
"lunar chests" | "perilous moons" | "perilous moon" | "moons of peril" => "Lunar Chest" ,
358
367
359
- //TODO have to return and captlize the first letter of each word
368
+ // hunter rumour variants
369
+ "hunterrumour" | "hunter contract" | "hunter contracts" | "hunter tasks"
370
+ | "hunter task" | "rumours" | "rumour" => "Hunter Rumours" ,
371
+
372
+ // sol heredit
373
+ "sol" | "colo" | "colosseum" | "fortis colosseum" => "Sol Heredit" ,
374
+
375
+ "bird egg" | "bird eggs" | "bird's egg" | "bird's eggs" => "Bird's egg offerings" ,
376
+
377
+ "amox" => "Amoxliatl" ,
378
+
379
+ "the hueycoatl" | "huey" => "Hueycoatl" ,
380
+
381
+ "crystal chest" => "crystal chest" ,
382
+
383
+ "larran small chest" | "larran's small chest" => "Larran's small chest" ,
384
+
385
+ "larran chest" | "larran's chest" | "larran big chest" | "larran's big chest" => {
386
+ "Larran's big chest"
387
+ }
388
+
389
+ "brimstone chest" => "Brimstone chest" ,
390
+
360
391
_ => {
361
392
match_found = false ;
362
393
""
0 commit comments