-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from NebulaServices/2.3
2.3
- Loading branch information
Showing
11 changed files
with
79 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Your bot token | ||
TOKEN= | ||
|
||
# The ID of the server you are going to add the bot to. | ||
GUILDID= | ||
|
||
# The ID of the bot profile | ||
CLIENTID= | ||
|
||
# An array of bot owner IDs | ||
OWNERID= | ||
|
||
# The text you see in the embeds of footers - i.e. "A Nebula service" | ||
EMBEDFOOTERTEXT= | ||
|
||
# These next few values are about reporting. If you leave them blank, the report feature will be disabled. | ||
REPORTWEBHOOK= | ||
REPORTUSERNAME= | ||
REPORTAVATAR= | ||
|
||
# The status displayed on your bot profile | ||
STATUS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
config.json | ||
database.sqlite | ||
database.sqlite | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const {SlashCommandBuilder} = require('@discordjs/builders') | ||
const {Users} = require('../db') | ||
module.exports = { | ||
data: new SlashCommandBuilder() | ||
.setName('reset-all') | ||
.setDescription('Reset ALL USERS'), | ||
ownerOnly: true, | ||
async execute(interaction){ | ||
try{ | ||
Users.destroy({ | ||
where: {} | ||
}) | ||
return interaction.reply('All users have been reset.') | ||
} | ||
catch(err){ | ||
interaction.reply('Something went wrong. Check the log!') | ||
console.log(client.colors.error(err)) | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters