mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-24 11:41:02 +00:00
feat: refactor and new features (#7)
* feat: refactor and new features + Refactored the codebase + OCR support in bots + Server sends training data every minute + Not using collectors for Discord feedback buttons anymore + Fixed grammar mistakes + Configs are now seperated + Tokens are no longer in configs - Like feedback doesn't work for Discord yet * feat: remove feedback button once voted * feat: role blacklist * feat: thread name check * feat: error handler for training * fix: bot crashing when a webhook msg is sent * refactor: remove debugging lines * feat: allow fixing mistake at votes in discord bot
This commit is contained in:
9
apps/bot-discord/src/events/threadCreate.js
Normal file
9
apps/bot-discord/src/events/threadCreate.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Events } from 'discord.js';
|
||||
|
||||
export default {
|
||||
name: Events.ThreadCreate,
|
||||
once: false,
|
||||
async execute(helper, _, thread) {
|
||||
helper.scanText(thread.name.toLowerCase(), thread.id);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user