Skip to content

Commit 8fe3fe6

Browse files
committed
feat: version 3.2.0
See detailed changelog in CHANGELOG.md
1 parent b098932 commit 8fe3fe6

File tree

6 files changed

+99
-67
lines changed

6 files changed

+99
-67
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
This changelog contains mostly API-Changes and changes for developers.
44

5+
## v3.2.0
6+
* Added support for timezone-config-parameter
7+
* Bumped dependencies
8+
* New modules: status-role, massrole
9+
* Optimizations for the economy module
10+
11+
Contributors: [jateute](https://github.com/jateute/), [hfgd123](https://github.com/hfgd123), [scderox](https://github.com/scderox)
12+
513
## v3.1.1
614
* Discord released their new way of editing slash-command-permissions ([read their blog](https://discord.com/blog/slash-commands-permissions-discord-apps-bots)), which made a lot of features basiclly usless:
715
* Commands can now only set a `defaultPermission` value

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ Every module has to contain a `module.json` file with the following content:
172172
#### Interaction-Command
173173

174174
Note: Interaction-Commands get loaded after the configuration got checked.\
175-
Note: Permissions for Slash-Commands have to be configured in the Server-Settings and will be checked by Discord.\
176175
An interaction-command ("slash command") file has to export the following things:
177176

178177
* `run` (function; provided arguments: `interaction`):
@@ -235,7 +234,7 @@ An example config file should include the following things:
235234
* `content`: Array of content fields:
236235
* `field_name`: Name of the config field
237236
* `default`: Default value
238-
* `type`: Can be `channelID`, `select`, `roleID`, `boolean`, `integer`, `array`, `keyed` (codename for an JS-Object)
237+
* `type`: Can be `channelID`, `select`, `timezone` (treated as string, please check validity before using), `roleID`, `boolean`, `integer`, `array`, `keyed` (codename for an JS-Object)
239238
or `string`
240239
* `description`: Short description of this field
241240
* `allowEmbed` (if type === `array, keyed or string`): Allow the usage of an [embed](#configuration) (Note: Please

config-generator/config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@
6565
"off"
6666
]
6767
},
68+
{
69+
"field_name": "timezone",
70+
"humanname-en": "Timezone",
71+
"humanname-de": "Zeitzone",
72+
"default": "Europe/Berlin",
73+
"type": "timezone",
74+
"description-en": "Timezone the bot runs in",
75+
"description-de": "Zeitzone in der der Bot laufen soll"
76+
},
6877
{
6978
"field_name": "logChannelID",
7079
"allowNull": true,

main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ const commands = [];
104104

105105
// Starting bot
106106
db.authenticate().then(async () => {
107+
if (config.timezone !== process.env.TZ) {
108+
process.env.TZ = config.timezone;
109+
logger.info(`Successfully set timezone to ${config.timezone}. The time is ${new Date().toLocaleString(client.locale)}.`);
110+
}
107111
if (scnxSetup) client.scnxHost = client.config.scnxHostOverwirde || 'https://scnx.app';
108112
await loadModelsInDir('/src/models');
109113
await loadModules();

package-lock.json

Lines changed: 71 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "customdcbot",
3-
"version": "3.1.1",
3+
"version": "3.2.0",
44
"description": "Create your own discord bot - Fully customizable and with a lot of features",
55
"main": "main.js",
66
"repository": {
@@ -22,7 +22,7 @@
2222
"dependencies": {
2323
"@androz2091/discord-invites-tracker": "^1.1.0",
2424
"@pixelfactory/privatebin": "^2.6.1",
25-
"@scnetwork/api": "^1.0.0",
25+
"@scnetwork/api": "^1.0.1",
2626
"age-calculator": "^1.0.0",
2727
"bs58": "^4.0.1",
2828
"bufferutil": "^4.0.6",
@@ -33,14 +33,14 @@
3333
"is-equal": "^1.6.4",
3434
"isomorphic-webcrypto": "^2.3.8",
3535
"jsonfile": "^6.1.0",
36-
"log4js": "^6.4.1",
36+
"log4js": "^6.4.6",
3737
"node-schedule": "^2.1.0",
3838
"parse-duration": "^1.0.2",
39-
"sequelize": "^6.14.0",
40-
"sqlite3": "^5.0.6",
39+
"sequelize": "^6.19.0",
40+
"sqlite3": "^5.0.7",
4141
"twitch": "^4.6.7",
4242
"twitch-auth": "^4.6.7",
43-
"utf-8-validate": "^5.0.8",
43+
"utf-8-validate": "^5.0.9",
4444
"zlib-sync": "^0.1.7"
4545
},
4646
"devDependencies": {

0 commit comments

Comments
 (0)