Fix various bugs, update djs
This commit is contained in:
parent
4d1924b1ec
commit
dda19de6e6
31 changed files with 96 additions and 72 deletions
12
backend/src/plugins/Utility/events/AutoJoinThreadEvt.ts
Normal file
12
backend/src/plugins/Utility/events/AutoJoinThreadEvt.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { utilityEvt } from "../types";
|
||||
|
||||
export const AutoJoinThreadEvt = utilityEvt({
|
||||
event: "threadCreate",
|
||||
|
||||
async listener(meta) {
|
||||
const config = meta.pluginData.config.get();
|
||||
if (config.autojoin_threads && meta.args.thread.joinable && !meta.args.thread.joined) {
|
||||
await meta.args.thread.join();
|
||||
}
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue