-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: i18n, drop legacy commands (#521)
Co-authored-by: Tobiah <[email protected]> Co-authored-by: Jimmy Bot <[email protected]> fix: tweak day/night algorithm: closes #516 feat: convert genesis to ESM: closes #502 fix: Worldstate commands only use channel-configured platform #523 feat: l10n support for localizable commands #140 BREAKING CHANGE: Dropped support for node < 14
- Loading branch information
Showing
371 changed files
with
20,153 additions
and
21,435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/gallium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
files: | ||
- source: /src/resources/locales/en.json | ||
translation: /src/resources/locales/%two_letters_code%.json | ||
- source: /src/resources/locales/commands/en.js | ||
translation: /src/resources/locales/commands/%two_letters_code%.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
'use strict'; | ||
|
||
const genManifest = require('./src/tools/generateManifest.js'); | ||
const Genesis = require('./src/bot'); | ||
import Genesis from './src/bot.js'; | ||
|
||
const localShards = parseInt(process.env.LOCAL_SHARDS, 10) || 1; | ||
const shardOffset = parseInt(process.env.SHARD_OFFSET, 10) || 0; | ||
|
||
genManifest(); | ||
const commandManifest = require('./commands.json'); | ||
|
||
const shards = new Array(localShards) | ||
.fill(0, 0, localShards + 1) | ||
.map((val, index) => index + shardOffset); | ||
const shards = new Array(localShards).fill(0, 0, localShards + 1).map((val, index) => index + shardOffset); | ||
|
||
new Genesis(process.env.TOKEN, { | ||
prefix: process.env.PREFIX, | ||
owner: process.env.OWNER, | ||
commandManifest, | ||
shards, | ||
}).start(); | ||
(async () => { | ||
const genesis = await new Genesis(process.env.TOKEN, { | ||
prefix: process.env.PREFIX, | ||
owner: process.env.OWNER, | ||
shards, | ||
}); | ||
await genesis.start(); | ||
})(); |
Oops, something went wrong.