• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

DE Welcome

Status
Not open for further replies.

Scor9ion

Member
habe eine frage könte mir einer das umschreiben das ich 4-6 spalten habe wo ich was reinschreiben könnte ich danke schonmal



registerPlugin({
name: 'Welcome!',
version: '1.0',
description: 'This plugin will let the bot greet everyone.',
author: 'Michael Friese <[email protected]>',
vars: {
message: {
title: 'The message that should be displayed. (%n = nickname)',
type: 'string'
},
type: {
title: 'Message-Type',
type: 'select',
options: [
'Private chat',
'Poke'
]
}
}
}, function(sinusbot, config) {
sinusbot.on('clientMove', function(ev) {
var msg = config.message;
msg = msg.replace(/%n/g, ev.clientNick);
if (ev.oldChannel == 0) {
if (config.type == 0) {
sinusbot.chatPrivate(ev.clientId, msg);
} else {
sinusbot.poke(ev.clientId, msg);
}
return;
}
});
});
 
änder type: 'string' zu type: 'multiline'
 
Okay und wo ist das Problem? Nutz halt nur vier Zeilen.
 
mit änder type: 'string' zu type: 'multiline' sieht das so aus

<16:14:33> "SinusBot": Willkommen, auf dem TeamSpeak.
Willkommen, auf dem TeamSpeak.
Willkommen, auf dem TeamSpeak.
Willkommen, auf dem TeamSpeak.

ich möchte haben das das so ist

<16:32:09> "SinusBot":
<16:32:09> "SinusBot": Willkommen, auf dem TeamSpeak.
<16:32:09> "SinusBot": Nutze !help, um alle Befehle zu sehen.
<16:32:09> "SinusBot":
 
Last edited:
ah ok, mach ich später oder kann auch gerne wer anders machen, bin am Handy atm
 
Damit kannst du im Webinterface einstellen, wie neue Zeilen behandelt werden sollen, wenn du 'private chat' ausgewählt hast.
(nicht vergessen den bot neuzustarten)
 

Attachments

könnte man auch mal im ts under halen
Error while trying to parse incoming message, see stacktrace for more information:
Code:
irgendwer.lang.MalformedQuestionException:
  at irgendwer.forum.sinusbot.Event.NewMessage(events.foo:69)
  at irgendwer.forum.sinusbot.Parser.ParseQuestion(parser.foo:42)
 
Status
Not open for further replies.
Back
Top Bottom