Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
change prefix option in config
Browse files Browse the repository at this point in the history
  • Loading branch information
karyeet committed Sep 13, 2023
1 parent db7efef commit 91a2d78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion config.json.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"token":"abcdefghfdfdgsgfsgsdgds"
"token":"abcdefghfdfdgsgfsgsdgds",
"PREFIX":">",
"additionalMusicDirs":["H:\\WindowsFolder\\Music","/linux/folder"],
"runIndexerOnStart": true,
"voiceCommands": {
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ else {

client.once("ready", () => {
console.log("Ready in " + client.guilds.cache.size + " guild(s).");
client.user.setActivity("Prefix: >", { type: "WATCHING" });
client.user.setActivity("Prefix: "+config.PREFIX, { type: "WATCHING" });
DIY_COMMANDO = require("./diy_commando.js");
});


// check if prefix is ">", and if so return the command back
// check if prefix is PREFIX, and if so return the command back
function checkCommand(content) {
if (!(content[0] == ">")) {
if (!(content[0] == config.PREFIX)) {
return false;
}
const splitContent = content.slice(1).split(" ");
Expand Down

0 comments on commit 91a2d78

Please sign in to comment.