Beispiel #1
0
        public async Task EvalLuaAsync([Summary("The code to evaluate."), Remainder] string code)
        {
            var channel = Context.Channel as SocketTextChannel;
            var msg     = await _misc.EvaluateLuaAsync(channel, code.Replace("--noreply", ""));

            if (!code.Contains("--noreply"))
            {
                await ReplyAsync(embed : msg.Build());
            }
        }