Archived
fixed undefined prefix message on startup (rc3)
This commit is contained in:
1 parent
a7ab7dc8e5
commit
45b0589468
2 files changed
+6
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "commandbot",
|
||||
"version": "3.0.0-rc2",
|
||||
"version": "3.0.0-rc3",
|
||||
"description": "A framework that helps you create your own Discord bot easier.",
|
||||
"main": "dist/cjs/index.js",
|
||||
"module": "dist/mjs/index.js",
|
||||
|
||||
+5
-1
@@ -90,7 +90,11 @@ export class Bot extends EventEmitter {
|
||||
async start(port?: number, register?: boolean): Promise<boolean> {
|
||||
try {
|
||||
console.log(`\nBot name: ${this.name}`);
|
||||
console.log(`Prefix: ${this.commands.prefix} \n`);
|
||||
console.log(
|
||||
`Prefix: ${
|
||||
this.commands.prefix || "/ (only slash commands)"
|
||||
} \n`
|
||||
);
|
||||
if (this.token === "") {
|
||||
throw new ReferenceError(
|
||||
'No token specified. Please pass your Discord application token as an argument to the "start" method or in the constructor'
|
||||
|
||||
Reference in new issue
Block a user