discord.net - C# Discord Bot opening then immediately shutting down -
whenever run discord bot code see terminal pop split second closes shows no errors @ all. output log mean didn't seem had errors put i'll post anyways incase needs it: https://pastebin.com/51bcdqwu
here code i'm using run bot:
using discord; using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; namespace discordbot { public class discordbot { discordclient client; public discordbot() { client = new discordclient(input => { input.loglevel = logseverity.info; input.loghandler = log; }); client.executeandwait(async () => { await client.connect("mzaymju1otm4mzaymzc3otg0.c9g5tq.x2iwvs6rbesn79soc9i9anuuzgi", tokentype.bot); }); } private void log(object sender, logmessageeventargs e) { console.writeline(e.message); } } }
Comments
Post a Comment