@lotus-tree/fg-notation 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -1
- package/src/index.js +5 -3
package/package.json
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lotus-tree/fg-notation",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.2",
|
4
4
|
"main": "src/index.js",
|
5
5
|
"type": "module",
|
6
6
|
"dependencies": {
|
7
7
|
"@lotus-tree/command-handler": "^3.0.0",
|
8
8
|
"axios": "^0.27.2",
|
9
9
|
"bent": "^7.3.12",
|
10
|
+
"discord.js": "^14.14.1",
|
10
11
|
"glob": "^7.2.0",
|
11
12
|
"sharp": "^0.29.3"
|
12
13
|
}
|
package/src/index.js
CHANGED
@@ -4,8 +4,10 @@ import glob from 'glob'
|
|
4
4
|
import { DataTypes } from 'sequelize'
|
5
5
|
import bent from 'bent'
|
6
6
|
import axios from 'axios'
|
7
|
+
import { GatewayIntentBits, Partials } from 'discord.js'
|
8
|
+
import { readFileSync } from 'fs'
|
7
9
|
|
8
|
-
|
10
|
+
const { sizes, aliases, builtin } = JSON.parse(readFileSync('./info.json'))
|
9
11
|
|
10
12
|
const getJSON = bent('json')
|
11
13
|
const imgPath = path.join(__dirname, 'img')
|
@@ -121,8 +123,8 @@ const fgnotation = {
|
|
121
123
|
name: 'FG Notation',
|
122
124
|
value: '[Instructions and source code](https://lotus.chitowarlock.com/fgnotation)\n[Infil\'s Fighting Game Glossary](https://glossary.infil.net)\n[MagicianStuff\'s Fighthing Game notations emotes](https://twitter.com/MagicianStuff/status/1477931054484893697)'
|
123
125
|
},
|
124
|
-
intents: [
|
125
|
-
partials: [
|
126
|
+
intents: [GatewayIntentBits.GuildMembers],
|
127
|
+
partials: [Partials.Message],
|
126
128
|
|
127
129
|
preload: sequelize => {
|
128
130
|
sequelize.define('fginput', {
|