@@ -3,7 +3,7 @@ const { formatUsername } = require("../../contracts/helperFunctions.js");
33const minecraftCommand = require ( "../../contracts/minecraftCommand.js" ) ;
44const { getBestiary } = require ( "../../../API/stats/bestiary.js" ) ;
55
6- class EightBallCommand extends minecraftCommand {
6+ class BestiaryCommand extends minecraftCommand {
77 constructor ( minecraft ) {
88 super ( minecraft ) ;
99
@@ -33,15 +33,15 @@ class EightBallCommand extends minecraftCommand {
3333
3434 const bestiary = getBestiary ( data . profile ) ;
3535 if ( bestiary === null ) {
36- return this . send ( `/gc This player has not yet joined SkyBlock since the bestiary update.` ) ;
36+ return this . send ( " This player has not yet joined SkyBlock since the bestiary update." ) ;
3737 }
3838
3939 if ( mob ) {
4040 const mobData = this . getBestiaryObject ( bestiary ) . find ( ( m ) => m . name . toLowerCase ( ) . includes ( mob . toLowerCase ( ) ) ) ;
4141
4242 if ( mobData ) {
4343 this . send (
44- `/gc ${ username } 's ${ mobData . name } Bestiary: ${ mobData . kills } / ${ mobData . nextTierKills } (${
44+ `${ username } 's ${ mobData . name } Bestiary: ${ mobData . kills } / ${ mobData . nextTierKills } (${
4545 mobData . nextTierKills - mobData . kills
4646 } ) `
4747 ) ;
@@ -51,7 +51,7 @@ class EightBallCommand extends minecraftCommand {
5151 }
5252
5353 this . send (
54- `/gc ${ username } 's Bestiary Milestone: ${ bestiary . milestone } / ${ bestiary . maxMilestone } | Unlocked Tiers: ${ bestiary . tiersUnlocked } / ${ bestiary . totalTiers } `
54+ `${ username } 's Bestiary Milestone: ${ bestiary . milestone } / ${ bestiary . maxMilestone } | Unlocked Tiers: ${ bestiary . tiersUnlocked } / ${ bestiary . totalTiers } `
5555 ) ;
5656
5757 if ( playerUsername === username ) {
@@ -66,11 +66,11 @@ class EightBallCommand extends minecraftCommand {
6666
6767 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
6868
69- this . send ( `/gc Closest to level up: ${ topFiveMobs . join ( ", " ) } ` ) ;
69+ this . send ( `Closest to level up: ${ topFiveMobs . join ( ", " ) } ` ) ;
7070 }
7171 } catch ( error ) {
7272 console . log ( error ) ;
73- this . send ( `/gc [ERROR] ${ error } ` ) ;
73+ this . send ( `[ERROR] ${ error } ` ) ;
7474 }
7575 }
7676
@@ -91,4 +91,4 @@ class EightBallCommand extends minecraftCommand {
9191 }
9292}
9393
94- module . exports = EightBallCommand ;
94+ module . exports = BestiaryCommand ;
0 commit comments