Dateien nach "scripts" hochladen

This commit is contained in:
2023-11-09 17:11:04 +01:00
parent c0e07269b7
commit 27ebfdfd31
10 changed files with 3751 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
registerPlugin({
name: 'Remember Last Channel',
version: '3.0.0',
backends: ['ts3', 'discord'],
description: 'This script will remember, which channel the bot was last moved to and will set it as default channel on join.',
author: 'SinusBot Team', // Michael Friese, Max Schmitt, Jonas Bögle
vars: []
}, () => {
const event = require('event')
const engine = require('engine')
event.on('clientMove', ({ client, toChannel }) => {
if (toChannel && client.isSelf()) {
engine.setDefaultChannelID(toChannel.id())
}
})
})