Lemma
Settings

Everything you can change, and how it looks

Each section shows one option of the bot with an example. The card images are made by Lemma itself, with invented data. The examples are what an English-language server sees; Portuguese servers see the same in Portuguese. Server managers change many of these options on the server setup page.

Everyone anyone Manager whoever manages the server Owner whoever runs the bot Code fixed in the code
Server

Options per server Manager

Every server has its own options. You pick them on the server setup page, which gives you a code, and apply them with /setup code:. Anything you do not change keeps its default.

OptionValuesDefault
LanguageEnglish or Portuguêsthe server's language on Discord
Card stylebuttons, image A, B or Cimage C
Read the game channelon or offoff
Weekly recapon or off, day, hour and time zoneon, Sunday, 21:00, Lisbon
Title roleson or offon
Photoson or offon
First-time tipon or offon
Game channela text channel, picked in Discordnot set

/setup with no options shows the current settings and their code, so you can load it on the page and change it.

Language

Language per server Manager

Every server picks its language: English or Português. It changes the names of the commands, the bot's messages and images, and the dictionary that checks the words. A new server starts in the language Discord has for it, and a manager changes it on the server setup page.

LanguageDictionaryWhat counts
EnglishWiktionarynouns, adjectives and verbs in the base form; plurals enter as the singular
Português (Portugal)Priberam Dictionarynouns, adjectives and verbs in the infinitive; plurals enter as the singular

Command names

Portuguese serversEnglish servers
/ajuda/help
/ranking/ranking
/perfil/profile
/titulos/titles
/procurar/search
/apagar/delete
/reset/reset
/estatisticas/stats
/pendentes/pending
/estilo/style
/semfoto/nophoto
/configurar/setup
/palavra/word
/resumo/recap
/importar/import
Lançar como palavraPost as word

Switching language renames the server's commands and redraws the cards already posted, little by little. Words stay as they are.

Card

Card style Manager

The /style command (or the setup page) changes all of the server's cards at once, the existing ones and the next ones. Votes stay as they are. There are four styles; the default is C.

How voting works in each

StyleVoteSee who votedDelete
ButtonsTap a button from 1 to 10👀 Votes button, only for you🗑️ button (while there are no votes)
Image A, B, CReact with 1 to 10 under the imageClicking the reaction shows the list/delete

On images only one reaction per person counts: if you react with another number, the previous one goes away by itself. Whoever posted the word cannot vote; their reaction is removed.

Card

How the card changes Code

The same card looks different depending on the votes. It is redrawn on every vote.

Ratings

Labels and colours Code

The label only appears with 2 or more votes. With no votes the card is grey.

AverageLabelColour
9 to 10Sacredlime
7 to 8.9Blessedlime
5 to 6.9Mundanelime from 6, gold below
3 to 4.9Singold
below 3Heresygold
3+ votes, all tensUnanimouslime
no votesno labelgrey

Colour is never the only signal: the rating is always also a number and a label. Portuguese servers see Sagrada, Abençoada, Mundana, Pecado, Heresia and Unânime.

Points

How points are earned Code

Two rules. A word with fewer than 2 votes gives no points and does not enter the word rankings.

A word you posted
Worth its average, but only with 2 or more votes.

A vote you gave
Worth 1 point, always.

Example

Ana posted Crumb, which got 8 votes and an average of 7.1. She gave 5 votes to other people's words.

7.1 + 5 = 12.1 points

Titles

Titles and roles Manager

Six titles, worked out on the spot. Each has a role in the server, which the bot creates and passes to the new holder by itself. The role is named with just the emoji and grants no permissions. A manager can turn the roles off; the titles still exist.

TitleWho holds itMinimumRole colour
👑 Prophetbest average across their words3 words with 2+ votesgold
✍️ Scribemost words posted1 wordblue
⚖️ Judgemost votes given1 votepurple
😇 Saintgives the highest ratings5 votes given and 2 eligible peoplelight yellow
🪓 Executionergives the lowest ratings5 votes given and 2 eligible peopledark red
🔥 Hereticauthor of the word with the worst averagea word with 2+ votesorange

The emojis show next to the name in /ranking and /profile. You can change a role's colour by hand in the server, but do not rename it: that is how the bot recognises it.

Rankings

Rankings and profile Everyone

/ranking has a menu with four views of 10 places each: Points, Best words, Worst words and Judges.

Invented names and numbers.

What each view shows

Pointswho has the most points
Bestthe words with the best average
Worstthe words with the worst average
Judgeswho gave the most votes

/profile shows, only to whoever asks, a person's points, position, words, votes given, and best and worst word. /titles says who holds each title.

Recap

Weekly recap Manager

It posts by itself once a week, by default on Sunday at 21:00 (Lisbon time), if there was activity in the last 7 days. The day, hour and time zone are chosen per server, and the recap can be turned off. If the bot is down at that hour, that week's recap is skipped. /recap posts it right away, by hand (Manager).

What it contains

  • The best and worst word of the week (🏆 and 💀).
  • The podium of points earned during the week.
  • The titles that changed hands since the last recap.
  • The total of words and votes.
Photos

Word photos Manager

When a free photo exists for the word, it shows in the corner of the card. If not, the card has none. The photo arrives after the card, which is then redrawn.

Card with a photo in the top right corner
Card with a photoThe picture here is only illustrative. The credit (author, link and licence) goes in the text under the card.

Rules

  • They come from Wikimedia (Portuguese Wikipedia and Commons).
  • Only licences that allow use with credit: CC BY, CC BY-SA, CC0 and public domain.
  • The file name must contain the whole word. Words under 4 letters get no photo.
  • No sexual content, no photos of people, and a list of words that never get a photo.
  • A manager can turn photos off for the server. When off, the word is also no longer sent to Wikimedia.
  • /nophoto palavra (Owner) removes a word's photo and does not look again.
Words

What counts as a word Code

The bot looks at each message in the game channel (when reading is on) and decides in this order. Anything that does not pass is just chat: nobody is told.

MessageThe bot…
from a bot, a reply, with an attachment or stickerignores it
more than one word, with numbers, punctuation or linksignores it
shorter than 2 or longer than 30 lettersignores it
no vowels ("fds") or 3 repeated letters in a row ("looool")ignores it
a single word on its owngoes to the dictionary

What the dictionary decides

For an English server, with the Wiktionary:

ResultExampleIn the channel
Noun, adjective or verbcurseMessage deleted and the card appears
Plural of a noun or adjectivecursesEnters as "curses", with the singular's definition
Alternative spellingcolourEnters, with the main spelling's definition
Only a form of another wordran, wentNothing (it is just a form of "run", "go")
Exists but does not countthe, quicklyNothing
Does not existasdfghNothing
Dictionary did not answerany⚠️ reaction on your message

A word that is also a real noun or adjective counts even if it looks like a form: "cursed" and "running" do. Portuguese servers use the Priberam Dictionary, where missing accents are fixed by themselves and typos are suggested.

  • Repeats: each word enters only once per server. Case, accents and hyphens are ignored, and singular and plural count as the same.
  • Word already there: your message is deleted and a notice with a link to the original card shows for 12 seconds.
  • Definition: the first sense in the dictionary (Wiktionary for English servers, Priberam for Portuguese ones), cut with "…" on images from 220 characters.
Commands

Commands and who can use them

CommandWhoOptionsWhat it does
/helpEveryonenoneExplains the bot in an image, only to whoever asks
/rankingEveryonemenu: points, best, worst, judgesShows the ranking
/profileEveryonemember (optional, defaults to you)One person's stats
/titlesEveryonenoneWho holds each title
/searchEveryoneword (with suggestions)Shows the card, only to you, and you can vote. If it does not exist, says why
/pendingEveryonenoneSends by DM, one at a time, the words you have not voted on yet
/deleteEveryoneword (with suggestions)Deletes a word of yours with no votes. The owner deletes any
/wordEveryonewordPosts a word in the game channel without typing in the channel
"Post as word" menuEveryoneon a messagePosts that message's text as a word
/setupManagerchannel, read_channel, code (all optional)Picks the game channel and applies the options from a code made on the setup page. With no options, shows the current settings
/styleManagerstyle: buttons, A, B or CChanges the style of this server's cards
/recapManagernonePosts the weekly recap right away
/importManagernoneImports the channel's old words and reactions
/statsOwnermember (optional), days (1 to 365, default 30)Bot usage, with numbers and a chart
/nophotoOwnerwordRemoves a word's photo
/resetOwnerasks for confirmation (30 seconds)Deletes words, votes and cards, with a backup

The Manager commands show up for whoever has the Manage Server permission.

Example: /pending

Only you see the card. After voting or skipping, it moves to the next. If you have this server's DMs turned off, the bot tells you.

.env file

Bot configuration Owner

Two values, in a .env file next to the bot. Each server's channel is no longer here: it is picked with /setup. After changing the file the bot must be restarted. The values below are invented.

# The bot's token. Never share it.
DISCORD_TOKEN=the_bot_token


# Who can /reset, /stats, /nophoto and delete any word.
OWNER_ID=123456789012345678
ValueWhat it is forIf missing
DISCORD_TOKENConnects the bot to DiscordThe bot does not start
OWNER_IDThe person with the owner powersUses the owner set in the code

For the bot to read words typed in the channel (the read_channel option of /setup), turn on Message Content Intent in the Developer Portal, under Bot. Without it the bot works with /word and the menu.

Timings and limits

Fixed values Code

These values are in the code. They change by editing the bot, not by command.

WhatValue
Votes for a word to count2
Weekly recap (default)Sunday, 21:00 (Lisbon); each server can change it
Repeated-word notice12 seconds
First-time tip20 seconds in the channel; private on buttons and commands
Letters in a word2 to 30
Accent attempts per wordup to 16 dictionary lookups
Rating scale1 to 10
Places in each ranking10
/reset confirmation30 seconds
/import progress updateevery 3 seconds

What /help shows

The /help image: how to read a card, what you can do and the commands