Init
In legion "bot" will be a global value. Although if you don't want to use legion for this you can do
local bot = loadstring(game:HttpGet("https://raw.githubusercontent.com/penguin-cmyk/discord-bot-luau/refs/heads/main/discordbot/init.lua"))()
What this will do is setup all the files (and the folder structure) and then return the bot library
Using lune
If you want to use lune for this project so that roblox doesn't need to be running you set it up like this
local bot = require("./discordbot/init.lua") -- it is NEEDED for the folder to be called discordbot else you would need to change the src up a bit (just the init file and that's all)
Last updated