Laima is a Discord bot for the Krosmaga CCG (Collecting Card Game). Click here to add it to your Discord server!
Illustration by FeaRei
Give information about the bot.
Display a card. Give keywords in order to find the card you want to see.
&card cleophee 3
If there are several result, you will be asked to choose the one you want to see.
Calculate the earnings of the draft mode. Give the play number(s) where you lose.
&draft 4 8
If you reached the level four, you will be ask to indicate the play number(s) where you did an all-in. You need to give the play number(s) or one of the accepted key-words: none, 0, all.
Display a table with the potential earnings. Give the number(s) of victories for which you want an estimation of the earnings. Without parameters, display the complete table.
&draft table 4 5 6
Give information about the Krosmaga's esport.
Display the esport calendar.
&esport calendar
Display the ladder of the esport competition. The parameter, optional, can be the last place you want to see, a range of places (e.g. 23-42) or 0 to see the complete ladder. If no parameter is given, the top 20 players are displayed.
&esport ladder 42
Display the seasonal or eternal ladder. The first parameter, optional, can be a nickname, a place between 1 and 100 or a range of place (e.g. 1-32). The second one, also optional, is the season number (0 for eternal). If no parameters are given, the top 20 players of the current season are displayed.
&ladder 1-10 0
Allow to change the language used on the server or in a channel. Takes two parameters. First is to precise where you want to change the language (channel or server). Second is to indicate which language you want to use (available: en, fr, es) ; use 0 for a channel to make it use the language of the server.
&lang server fr
Change the prefix to call Laima on a server. Give the new prefix you want to use. Limited to 3 characters.
&prefix ß
Display the rewards of the ranked mode. Give the rank(s) for which you want to know the rewards. Accepted values are number from 6 to 30, top100, top20, 3rd, 2nd and 1st. If no rank are given, display the all table.
&season 21
Allow to subscribe or unsubscribe to the rss feed of the Krosmaga website. The news are displayed in the language of the channel (or server if not defined).
Subscribe the current channel
&rss on
Unsubscribe the current channel
&rss off
Indicate if the current channel is currently subscribed or not
&rss status
Allow to subscribe or unsubscribe to one of the twitter timeline of Krosmaga. The tweets displayed are from the timeline of the same language as the one of the channel (or server if not defined).
Subscribe the current channel
&twitter on
Unsubscribe the current channel
&twitter off
Indicate if the current channel is currently subscribed or not
&twitter status
Display the last tweet of Krosmaga
&twitter last
Here you will find some instruction to launch Laima Discord Bot. It is recommanded to use Python3.
- Create a python virtual environnement and activate it
- Install the dependencies using the requirements.txt file
- Complete the laima/config.py file with your Discord & Twitter data
- Before the first launch, create the database running this command from the root folder of the project:
python laima/create_database.py
- Run the following command (still in the root folder of the project):
python laima/main.py
If all works correctly, you should see this:
Logged in as
Laima
481516234211235813
------
If you want to use Laima in a language that is not yet supported, you can provide it! Simply clone the project, create a folder with the two-letter abbrevation of your language and a subfolder LC_MESSAGES under laima/i18n. Copy the laima.po in it, and translate it (see example of existing languages). You can use Poedit to help you in the task. Finally, do a push request, your help will be very appreciated!