You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 18, 2024. It is now read-only.
* 2.0.0
Removed the installer and all required packages.
Removed the `loadCommand` and `unloadCommand` functions.
Removed the `wait` function, was no longer used.
Removed the `owners` functionality as the concept was too advanced for an example bot.
Required the `logger` file where it was needed instead of binding it to `client`.
Required the `settings` database and `config` file where needed.
Moved the `clean` function into the `eval` command.
Updated all of the code to reflect these changes.
Moved the discord bot token into an `.env` file for better security.
Added `owner` to the `.env` file.
To-do;
Change `levelCache` into a function to pull it off the `client` property.
* Missed one
whoops, missed one.
* Fixed events
Removed `client` from `getSettings()` as it expects one variable, not two.
* Clean up
Removed an unused prototype pollutant, fixed a padding mistake and cleaned up the client object.
* Further clean up
Found some stray `client.awaitReply` functions, updated the reload command to work with aliases.
* Final draft of simplification.
Significantly reduced the `client` pollution by including a single `container` to the client and attaching every thing else, such as the `commands`, `aliases`, etc collections to that instead.
Updated the code to reflect these changes.
* Dependency update
Replaced the dead `moment`, and `moment-duration-format` dependencies with `@sapphire/time-utilities`.
Replaced `chalk` with `colorette`.
* Formatting consistency.
Updated the timestamp for the logger to be consistent with previous versions.
* Whoopsy
I forgot to revert a testing change.
* Removed default params
Both `stat` commands included redundant parameters, they have been removed.
* Fixing error logging
* Fixed Issues in Commands (#150)
* removed token lines from config.js (#151)
* removed token lines from config.js
* Update .gitignore
I'm making an executive decision to merge this without full testing from multiple sources;
It works for me and two other individuals.
Copy file name to clipboardExpand all lines: README.md
+5-6
Original file line number
Diff line number
Diff line change
@@ -26,12 +26,11 @@ Need support? Join the [Idiot's Guide Community](https://discord.gg/vXVxsAjSMF)!
26
26
- The node-gyp build tools. This is a pre-requisite for Enmap, but also for a **lot** of other modules. See [The Enmap Guide](https://enmap.evie.codes/install#pre-requisites) for details and requirements for your OS. Just follow what's in the tabbed block only, then come back here!
27
27
28
28
You also need your bot's token. This is obtained by creating an application in
29
-
the Developer section of discord.com. Check the [first section of this page](https://anidiots.guide/getting-started/the-long-version.html)
29
+
the Developer section of discord.com. Check the [first section of this page](https://anidiots.guide/getting-started/getting-started-long-version)
30
30
for more info.
31
31
32
32
## Intents
33
33
34
-
Guidebot uses intents which are required as of October 7, 2020.
35
34
You can enable privileged intents in your bot page
36
35
(the one you got your token from) under `Privileged Gateway Intents`.
37
36
@@ -46,16 +45,16 @@ For more info about intents checkout the [official Discord.js guide page](https:
46
45
47
46
## Downloading
48
47
49
-
Create a folder within your projects directory and run the following:
48
+
Create a folder within your projects directory and run the following inside it:
if(joinedValue.length<1)returnmessage.reply({content: "Please specify a new value",allowedMentions: {repliedUser: (replying==="true")}});
33
35
// User must specify a different value than the current one.
34
-
if(joinedValue===settings[key])returnmessage.reply({content: "This setting already has that value!",allowedMentions: {repliedUser: (replying==="true")}});
36
+
if(joinedValue===serverSettings[key])returnmessage.reply({content: "This setting already has that value!",allowedMentions: {repliedUser: (replying==="true")}});
35
37
36
38
// If the guild does not have any overrides, initialize it.
if(!overrides[key])returnmessage.reply({content: "This key does not have an override and is already using defaults.",allowedMentions: {repliedUser: (replying==="true")}});
51
53
52
54
// Good demonstration of the custom awaitReply method in `./modules/functions.js` !
53
-
constresponse=awaitclient.awaitReply(message,`Are you sure you want to reset ${key} to the default value?`);
55
+
constresponse=awaitawaitReply(message,`Are you sure you want to reset ${key} to the default value?`);
54
56
55
57
// If they respond with y or yes, continue.
56
58
if(["y","yes"].includes(response.toLowerCase())){
57
59
// We delete the `key` here.
58
-
client.settings.delete(message.guild.id,key);
60
+
settings.delete(message.guild.id,key);
59
61
message.reply({content: `${key} was successfully reset to default.`,allowedMentions: {repliedUser: (replying==="true")}});
60
62
}else
61
63
// If they respond with n or no, we inform them that the action has been cancelled.
62
64
if(["n","no","cancel"].includes(response)){
63
-
message.reply({content: `Your setting for \`${key}\` remains at \`${settings[key]}\``,allowedMentions: {repliedUser: (replying==="true")}});
65
+
message.reply({content: `Your setting for \`${key}\` remains at \`${serverSettings[key]}\``,allowedMentions: {repliedUser: (replying==="true")}});
64
66
}
65
67
}else
66
68
67
69
if(action==="get"){
68
70
if(!key)returnmessage.reply({content: "Please specify a key to view",allowedMentions: {repliedUser: (replying==="true")}});
69
71
if(!defaults[key])returnmessage.reply({content: "This key does not exist in the settings",allowedMentions: {repliedUser: (replying==="true")}});
70
72
constisDefault=!overrides[key] ? "\nThis is the default global default value." : "";
71
-
message.reply({content: `The value of ${key} is currently ${settings[key]}${isDefault}`,allowedMentions: {repliedUser: (replying==="true")}});
73
+
message.reply({content: `The value of ${key} is currently ${serverSettings[key]}${isDefault}`,allowedMentions: {repliedUser: (replying==="true")}});
72
74
}else{
73
75
// Otherwise, the default action is to return the whole configuration;
0 commit comments