Beispiel #1
0
        public async Task GetExternalIP(CommandContext ctx)
        {
            /* Trigger the Typing... in discord */
            await ctx.TriggerTypingAsync();

            string ip = await NetworkTools.GetExternalIP();

            //Send the message
            await ctx.RespondAsync(string.Format("Bots IP Address is: `{0}`", ip)).ConfigureAwait(false);
        }