Esempio n. 1
0
async def commandEmpty(args: ChatCommandArgs) -> bool:
    return channel.empty(args.message.lower[1], send(args.chat))
Esempio n. 2
0
async def commandManageBot(args: ChatCommandArgs) -> bool:
    return await managebot.manage_bot(args.data, args.permissions,
                                      send(args.chat), args.nick, args.message)
Esempio n. 3
0
async def commandJoin(args: ChatCommandArgs) -> bool:
    return await channel.join(args.message.lower[1], send(args.chat))
Esempio n. 4
0
async def commandEmptyAll(args: ChatCommandArgs) -> bool:
    return channel.empty_all(send(args.chat))
Esempio n. 5
0
async def commandFeature(args: ChatCommandArgs) -> bool:
    return await library.feature(args.data, args.chat.channel, args.message,
                                 send(args.chat))
Esempio n. 6
0
async def commandAutoJoin(args: ChatCommandArgs) -> bool:
    return await library.auto_join(args.nick, send(args.chat), args.message)
Esempio n. 7
0
async def commandLeave(args: ChatCommandArgs) -> bool:
    return await library.leave(args.chat.channel, send(args.chat))
Esempio n. 8
0
async def commandCome(args: ChatCommandArgs) -> bool:
    return await library.come(args.nick, send(args.chat))
Esempio n. 9
0
 def test_send(self):
     self.assertIs(chat.send(self.channel), self.channel.send)
     chat.send(self.channel)('Kappa')
     self.channel.send.assert_called_once_with('Kappa')