本文整理匯總了TypeScript中irc.Client.say方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Client.say方法的具體用法?TypeScript Client.say怎麽用?TypeScript Client.say使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類irc.Client
的用法示例。
在下文中一共展示了Client.say方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: debugIrc
this.client.join(channel, () => {
this.client.say(channel, 'Chat moderation is started');
this.isRunning = true;
debugIrc(`${this.name} started successfully`);
typeof done === 'function' && done();
});
示例2: stop
stop(done?: () => void): void {
if (!this.getIsRunning()) {
typeof done === 'function' && done();
return;
}
const channel: string = '#' + this.name;
this.client.say(channel, 'Chat moderation is stopped');
this.client.part(channel, () => {
this.client.disconnect(() => {
this.isRunning = false;
debugIrc(`${this.name} stopped successfully`);
typeof done === 'function' && done();
});
});
}
示例3: setTimeout
setTimeout(function () { bot.say(to, "\u0001ACTION dances: :D|-<\u0001") }, 4000);
示例4: emoteonlyoff
emoteonlyoff(): void {
this.client.say(this.channel, `/emoteonlyoff`);
}
示例5: r9kbetaoff
r9kbetaoff(): void {
this.client.say(this.channel, `/r9kbetaoff`);
}
示例6: r9kbeta
r9kbeta(): void {
this.client.say(this.channel, `/r9kbeta`);
}
示例7: clear
clear(): void {
this.client.say(this.channel, `/clear`);
}
示例8: subscribersoff
subscribersoff(): void {
this.client.say(this.channel, `/subscribersoff`);
}
示例9: slowoff
slowoff(): void {
this.client.say(this.channel, `/slowoff`);
}
示例10: slow
slow(seconds: number): void {
this.client.say(this.channel, `/slow ${seconds}`);
}