LuaBot logo

‎ LuaBot Documentation

Welcome to LuaBot's official documentation! Here you'll find all important informations about the bot and all commands with their descriptions.


Info

LuaBot is (as the name suggests) written in Lua. It uses Discordia - a Discord API library written in Lua for the Luvit runtime environment.

It also uses coro-http, lit-sqlite3, json and Discordia-Expanded libraries.


Commands

Command Arguments Category Description
help none General Displays some information about the bot and a list of commands.
commandinfo command name General Shows basic information about given command (description, arguments and its category).
patreon none General Gives you a link to LuaBot's Patreon <3
ping none General Responds with "Pong!" and the bot's ping (latency) in milliseconds.
prefix new prefix General Changes current server's LuaBot prefix. The prefix can't be longer than 10 characters. "Manage server" permission required.
serverinfo none General Shows basic information about the server user: description (if any), id, server creation date, boost level, amount of members and amount of text and voice channels. The info embed also has a preview of server's icon.
userinfo user (mention/id) General Shows basic information about mentioned user: nickname (if any), id, Discord join date and server join date. The info embed also has a preview of user's avatar.
avatar user (mention/id) General Sends user's avatar.
embed text General Sends the specified text as an embed.
emoji emoji General Enlarges a custom emoji, so you can easily download it. Doesn't work with Discord's default emojis.
reminders none General Shows a list of currently set reminders.
remindme minutes/time, reminder General Sets a new reminder. Reminder time can be specified by just sending a number (this will be treated as amount of minutes). You can also use 1h for 1 hour, 1d for 1 day or 1w for 1 week, etc. However something like 1w 2d (1 week 2 days) will NOT work.
removereminder reminder id General Removes a reminder which has the matching id, if it's this user's reminder. You can see a reminder's id by using the reminders command.
ban user (mention/id), reason Moderation Bans mentioned user.
tempban user (mention/id), hours/time, reason Moderation Bans mentioned user for the specified amount of time. Tempban duration can be specified by just sending a number (this will be treated as amount of hours). If you want to ban someone a longer period of time you can use 1w for 1 week tempban, 1m for 1 month tempban or 1y for 1 year tempban, etc. However something like 1y 2m (1 year 2 months) will NOT work.
kick user (mention/id) Moderation Kicks mentioned user.
mute user (mention/id), duration Moderation Mutes given user for a specified amount of time. Mute duration can be specified by just sending a number (this will be treated as amount of seconds). If you want the duration to be longer, you can use 1m for 1 minute mute or 1h for 1 hour mute etc. However something like 1m 2s (1 miunte 2 seconds) will NOT work. Muting someone for 0 seconds basically unmutes this person. "Timeout members" permission required.
slowmode duration Moderation Sets current channel's slowmode. Slowmode duration can be specified by just sending a number (this will be treated as amount of seconds). If you want the duration to be longer, you can use 1m for 1 minute slowmode or 1h for 1 hour slowmode etc. However something like 1m 2s (1 miunte 2 seconds) will NOT work. Setting the slowmode to 0 seconds disables it completely. "Manage channels" permission required.
tickle user (mention) Actions Makes you tickle given user.
pat user (mention) Actions Makes you pat given user.
hug user (mention) Actions Makes you hug given user.
cuddle user (mention) Actions Makes you cuddle given user.
kiss user (mention) Actions Makes you kiss given user.
slap user (mention) Actions Makes you slap given user.
smack user (mention) Actions Makes you smack given user.
epicgamesfree none Gaming Shows current free games on Epic Games Store.
steamuser steam vanity name Gaming Shows basic information about given Steam user's profile. You can find the vanity name in a profile's url, for example in "https://steamcommunity.com/id/gabelogannewell" the vanity name is gabelogannewell.
lolprofile region, summoner name Gaming Shows basic information about given League of Legends profile in the given region. Valid regions are: BR, EUNE, EUW, JP, KR, LAN, LAS, NA, OCE, TR and RU.
robloxuser roblox username Gaming Shows basic information about given Roblox user's profile.
echo message 4Fun Echoes what you say.
eightball message 4Fun The magic 8ball shall respond to your question.
quote none 4Fun Sends a random quote using API Ninjas. If the API doesn't respond, sends a random quote from a premade quotes list.
recipe dish 4Fun Sends a recipe for the specified dish using API Ninjas.
rhyme word 4Fun Sends a list of rhymes for the specified word using API Ninjas.
urbandict word 4Fun Sends a definition from the Urban Dictionary using Urban Dictionary API.
rps rock/paper/scissors 4Fun You can play a simple game of rock paper scissors with LuaBot.
randomnumber minimum number, maximum number 4Fun Sends a random number between given min and max numbers. If the max number is bigger than 1000000000000, it will be changed to 1000000000000.
spotifyartist artist name 4Fun Shows basic information taken from Spotify about given artist.
spotifyalbum album name 4Fun Shows basic information taken from Spotify about given album and its tracklist. The tracklist contains the track's name, length and list of all artists appearing on it.