Posted February 8, 2021 (edited) So I created a Discord bot that will allow you to run console commands from Discord. First thing is you will need to set up a bot with Discord and copy its Token over for use in the Discordia Script. https://discord.com/developers/applications When inviting your bot, do not give your bot administrative privilege, this is to make sure you make it so the bot can only read messages from admin channels by specifically adding that bot to category permissions or per-channel permissions. Here are the permissions you want to give it: Spoiler Send Messages Read Message History How to invite your bot: https://discordpy.readthedocs.io/en/latest/discord.html____________________________________________ After that you will need the Discordia + Bot package [ discord.lua ] and the server side script [ discord.lua ]. Setting up the Discordia bot: 1. Unzip the luvit.zip onto the same system your server is going to be running on. 2(a). Open the haloce.lua in the luvit.zip, at the top you should see this: -- Set up bot local bot_prefix = ">" local bot_token = "YOUR_BOT_TOKEN" -- Path to haloceded/haloded(s) local servers = {} servers['ce01'] = {"C:\\Users\\Gigabyte\\Desktop\\CE_Test", '-path "C:\\Users\\Gigabyte\\Desktop\\CE_Test"', "haloceded.exe"} --servers['ce01'] = {"C:\\Users\\Gigabyte\\Desktop\\PC_Test", '-path "C:\\Users\\Gigabyte\\Desktop\\PC_Test"', "haloded.exe"} 2(b). Take the bot token you got from your discord developers page and paste it in replacing `YOU_BOT_TOKEN`, and make sure that the quotations are still around it. 2(c). Now below `servers` you will want to set your server short-name (in my case it was ce01, so `servers['ce01'] =`). Set the server path, launch arguments, and executable name as well. (The second line is an example how to do a HaloPC server, or add another server.)NOTE: You cannot have 2 servers with the same short-name like I did by accident. 3(a). Take the discord.lua and paste it into your SAPP server's lua folder. 3(b). Remember to add `lua_load discord` to your SAPP init.txt. 4(a). Open t he discord.lua, at the top it should look like this: -- Path to Discordia bot. local discordia_path = "C:\\Users\\Gigabyte\\Desktop\\luvit\\" -- Path to read commands from. local command_file_path = "\\ce01\\command.txt" 4(b). For discordia_path, put the path were you have the the bot unzipped to, like shown above. 4(c). For command_file_path you need to put the server short-name where I did otherwise the server will not be able to pick up commands. 5. Start your Halo server + the bot (using the start_bot.cmd) Preview of how it should work when set up correctly: luvit.zip Edited February 8, 2021 by Devieth made sure the right zip file was there tarikja, Takka, aLTis and 3 others like this Share this post Link to post Share on other sites
Posted February 8, 2021 This is fucking fantastic; did you just make this recently? Enclusion likes this Oddly, this is familiar to you... as if from an old dream. Share this post Link to post Share on other sites
Posted February 8, 2021 (edited) Just now, Tucker933 said: This is fucking fantastic; did you just make this recently? Just this morning. Been thinking about it for a while now, and someone else's interest in it made me want to do it. Edited February 8, 2021 by Devieth Enclusion likes this Share this post Link to post Share on other sites
Posted February 8, 2021 22 minutes ago, Tucker933 said: This is fucking fantastic; did you just make this recently? This is shortlist material, imo. Sunstriker7 and Takka like this Share this post Link to post Share on other sites
Posted February 8, 2021 3 minutes ago, Enclusion said: This is shortlist material, imo. Right you are. Added. Sunstriker7, Devieth and Enclusion like this Oddly, this is familiar to you... as if from an old dream. Share this post Link to post Share on other sites
Posted February 9, 2021 This looks like Chalwk's work https://www.twitch.tv/krazychic Share this post Link to post Share on other sites
Posted February 9, 2021 6 minutes ago, Krazychic said: This looks like Chalwk's work No, Devieth's is unique. We just happen to be working on similar projects at the same time. Enclusion and Devieth like this - I invite you to join my Halo Discord Server. - Add me on discord: Chalwk#9284 - HSP Repo Wiki (new) Share this post Link to post Share on other sites
Posted February 9, 2021 41 minutes ago, Chalwk said: No, Devieth's is unique. We just happen to be working on similar projects at the same time. I hadn't looked at who posted this, assumed it was you since you messaged me earlier. Turns out it was @Devieth who posted this, oops. Share this post Link to post Share on other sites
Posted February 9, 2021 This is something that @Chalwk's project reminded me that I wanted to do when I first discovered Discordia (Lua API for Discord.) So actually a good amount of thanks to him that I even made this. Probably a lot more simple that what he's doing.Discordia is pretty awesome and I been writing bots with it for a couple months now. Takka and Enclusion like this Share this post Link to post Share on other sites