diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-29 11:42:40 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-29 11:42:40 -0400 |
| commit | f18f5fff1fd0b8336df464d6e6f62efbc29aa618 (patch) | |
| tree | cc23d2aa33ccb9dcd67f6bda811e5f32b0edc766 /bot/src/models | |
| parent | 879c2a05c86682564f1f68aa234fd8e5298e95f6 (diff) | |
| download | AleeBot-f18f5fff1fd0b8336df464d6e6f62efbc29aa618.tar.gz AleeBot-f18f5fff1fd0b8336df464d6e6f62efbc29aa618.tar.bz2 AleeBot-f18f5fff1fd0b8336df464d6e6f62efbc29aa618.zip | |
Added analytics; try/catch for ready event
Diffstat (limited to 'bot/src/models')
| -rw-r--r-- | bot/src/models/command-usages.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bot/src/models/command-usages.js b/bot/src/models/command-usages.js new file mode 100644 index 0000000..a9dafa4 --- /dev/null +++ b/bot/src/models/command-usages.js @@ -0,0 +1,26 @@ +import { INTEGER, STRING } from 'sequelize'; +import { sequelize } from '../utils/sequelize.js'; + +export const commandUsages = sequelize.define('command-usages', { + id: { + type: INTEGER, + autoIncrement: true, + primaryKey: true + }, + command: { + type: STRING, + allowNull: false + }, + userID: { + type: STRING, + allowNull: false + }, + guildID: { + type: STRING, + allowNull: true + } + +}, { + updatedAt: false, +}); + |
