本文整理汇总了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}`);
}