Beispiel #1
0
        public async void TestPlugins(IPalBot bot, Message msg, string cmd)
        {
            //Make the bot reply to the calling user with "Hello world!"
            await bot.Reply(msg, "Hello world!");

            //Make the bot send a PM to the calling user
            await bot.Private(msg.UserId, "Hey there! Thanks for testing the bot!");

            //If the message was sent in a group, send a message back to the group
            if (msg.MesgType == MessageType.Group)
            {
                await bot.Group(msg.GroupId.Value, "Is this group any fun to chat in?");
            }
        }
Beispiel #2
0
 public static async Task <bool> Group(this IPalBot bot, int id, Bitmap image)
 {
     return(await bot.Group(id, image.ToByteArray()));
 }