Skip to content

Commit

Permalink
Added bot initials in slash commands to make it easier to find them a…
Browse files Browse the repository at this point in the history
…nd to prevent conflict beetween bots having similar commands. Minor fixes and improvements
  • Loading branch information
TheMegaGlitch committed Apr 5, 2021
1 parent 9dc8fde commit 6479096
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion eventHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function(client, instance){
client.on("ready", () => {
console.log(`Client ${client.user.tag} (${client.user.id}) READY | Instance ${instance}`)
function setStatus(){
client.user.setActivity(`Taking notes via Slash Commands | ${client.guilds.cache.size} ${client.guilds.cache.size == 1?"Server":"Servers"} | /help`)
client.user.setActivity(`users taking notes via Slash Commands | ${client.guilds.cache.size} ${client.guilds.cache.size == 1?"Server":"Servers"} | /help`, {type:"WATCHING"})
}
setStatus()
setInterval(() => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions modules/interactionHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ let cooldowns = new Map()
const config = require("../config.json")

const commandIDs = {
create:config.create,
view:config.view,
delete:config.delete,
list:config.list,
help:config.help,
post:config.post
sn_create:config.sn_create,
sn_view:config.sn_view,
sn_delete:config.sn_delete,
sn_list:config.sn_list,
sn_help:config.sn_help,
sn_post:config.sn_post
}

const guildNoteHandler = require("./guildNotesHandler")
Expand Down
24 changes: 12 additions & 12 deletions setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const {writeFileSync, existsSync} = require("fs")
const Interaction = require("./modules/interactions")
const commands = [
{
name: 'create',
description: 'SlashNotes: Create a note.',
name: 'sn_create',
description: 'Create a note.',
options: [
{
type: 3,
Expand All @@ -26,8 +26,8 @@ const commands = [
]
},
{
name: 'view',
description: 'SlashNotes: View a note you own. (Does not work for Server Slash notes)',
name: 'sn_view',
description: 'View a note you own. (Does not work for Server Slash notes)',
options: [
{
type: 3,
Expand All @@ -38,8 +38,8 @@ const commands = [
]
},
{
name: 'delete',
description: 'SlashNotes: Delete a note using its name.',
name: 'sn_delete',
description: 'Delete a note using its name.',
options: [
{
type: 3,
Expand All @@ -56,12 +56,12 @@ const commands = [
]
},
{
name: 'list',
description: 'SlashNotes: View notes you own. (Does not work for Server Slash notes)',
name: 'sn_list',
description: 'View notes you own. (Does not work for Server Slash notes)',
},
{
name: 'help',
description: 'SlashNotes: View all available commands or view information on a certain one.',
name: 'sn_help',
description: 'View all available commands or view information on a certain one.',
options: [
{
type: 3,
Expand All @@ -71,8 +71,8 @@ const commands = [
]
},
{
name: 'post',
description: 'SlashNotes: Share a note you own in the current channel. (Does not work for Server Slash notes)',
name: 'sn_post',
description: 'Share a note you own in the current channel. (Does not work for Server Slash notes)',
options: [
{
type: 3,
Expand Down

0 comments on commit 6479096

Please sign in to comment.