Exemplo n.º 1
0
        public async Task ProcessPingMe(CommandContext ctx)
        {
            if (!ctx.Channel.IsPrivate)
            {
                await PingMe.Process(ctx.Member);
            }
            else
            {
                DiscordMember member = await Config.Guild.GetMemberAsync(ctx.User.Id);

                if (member != null)
                {
                    await PingMe.Process(member);
                }
            }
        }
Exemplo n.º 2
0
        public static async Task OnServerAvailable(GuildCreateEventArgs e)
        {
            if (e.Guild.Id == Config.GuildId)
            {
                await Config.LoadEntities();

                await Program.discord.UpdateStatusAsync(Config.ClientGame);

                await View.SendMain(GameMessages.ShowHello());

                await View.Wipe();

                await View.DisableMod();

                await PingMe.Load();
            }
        }