add info command
This commit is contained in:
parent
440acad589
commit
ec70270371
2 changed files with 17 additions and 0 deletions
15
src/commands/info.js
Normal file
15
src/commands/info.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { Command } from "./commands.js"
|
||||
|
||||
export default class InfoCommand extends Command {
|
||||
|
||||
#chat
|
||||
|
||||
constructor(chat) {
|
||||
super("info")
|
||||
this.#chat = chat
|
||||
}
|
||||
|
||||
run(username, args) {
|
||||
this.#chat.chat("3b3tBot - Made by 1e99")
|
||||
}
|
||||
}
|
|
@ -10,6 +10,7 @@ import TPS from "./modules/tps.js"
|
|||
import BestPingCommand from "./commands/best-ping.js"
|
||||
import Commands from "./commands/commands.js"
|
||||
import HelpCommand from "./commands/help.js"
|
||||
import InfoCommand from "./commands/info.js"
|
||||
import JoinDateCommand from "./commands/joindate.js"
|
||||
import PingCommand from "./commands/ping.js"
|
||||
import PlaytimeCommand from "./commands/playtime.js"
|
||||
|
@ -130,6 +131,7 @@ function newClient() {
|
|||
const commands = new Commands(chat, "!")
|
||||
commands.register(new BestPingCommand(chat, players))
|
||||
commands.register(new HelpCommand(chat, commands))
|
||||
commands.register(new InfoCommand(chat))
|
||||
commands.register(new JoinDateCommand(chat, db, dateFormat))
|
||||
commands.register(new PingCommand(chat, players))
|
||||
commands.register(new PlaytimeCommand(chat, db))
|
||||
|
|
Loading…
Add table
Reference in a new issue