Add wiki and weather commands
This commit is contained in:
@@ -10,6 +10,7 @@ module.exports = {
|
||||
.setName('user')
|
||||
.setDescription('User to check (defaults to you)')
|
||||
.setRequired(false)),
|
||||
category: 'Currency',
|
||||
async execute(interaction) {
|
||||
const dbClient = await connectToDatabase();
|
||||
const db = dbClient.db('discord');
|
||||
|
||||
@@ -22,6 +22,7 @@ module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('earn')
|
||||
.setDescription('Claim your daily coin reward.'),
|
||||
category: 'Currency',
|
||||
async execute(interaction) {
|
||||
const dbClient = await connectToDatabase();
|
||||
const db = dbClient.db('discord');
|
||||
|
||||
@@ -17,6 +17,7 @@ module.exports = {
|
||||
.setName('target')
|
||||
.setDescription('User to receive coins')
|
||||
.setRequired(true)),
|
||||
category: 'Currency',
|
||||
async execute(interaction) {
|
||||
const dbClient = await connectToDatabase();
|
||||
const target = interaction.options.getUser('target');
|
||||
|
||||
@@ -11,6 +11,7 @@ module.exports = {
|
||||
.setName('message')
|
||||
.setDescription('string to store')
|
||||
.setRequired(true)),
|
||||
category: 'Database',
|
||||
async execute(interaction) {
|
||||
const dbClient = await connectToDatabase();
|
||||
const message = interaction.options.getString('message');
|
||||
|
||||
@@ -16,6 +16,7 @@ module.exports = {
|
||||
.setDescription('Amount of coins to send')
|
||||
.setMinValue(1)
|
||||
.setRequired(true)),
|
||||
category: 'Currency',
|
||||
async execute(interaction) {
|
||||
const dbClient = await connectToDatabase();
|
||||
const db = dbClient.db('discord');
|
||||
|
||||
Reference in New Issue
Block a user