The Swedish Twitter Bot
![](https://github.com/michalspano/the-swedish-bot/raw/main/assets/icon_round.png)
![MIT License](https://img.shields.io/github/license/michalspano/the-swedish-bot.svg?style=for-the-badge)
Introduction
Hej! I am the Swedish Twitter Bot!
I retweet hourly under #Sweden
and #Sverige
on Twitter! πΈπͺ
I'm also a Discord Bot with multiple functions! π€
About me
- π§ | [**Documentation**](https://github.com/michalspano/the-swedish-bot)
- π© | [**Report issues**](https://github.com/michalspano/the-swedish-bot/issues)
## Details
[**Twitter Profile**][TWITTER] -
[**Tweets Database**][GS] -
[**Add to your server**][ADD] π€
The __website__ is currently __deprecated__ and will be __replaced__ with a __new one__ in the future. The __documentation__ is __available__ on the __GitHub__ repository. For troubleshooting, __report__ any __issues__ on the __GitHub__ repository.
\*__Packages__ used: `gspread`, `tweepy`, `discord.py`, `Flask`.
## Bot commands
- Use any of the **commands** with the *default bot prefix* (abbreviation **DBP**): `--`
\- or *mention* `@The Swedish Twitter Bot`.
- Use the *command prefix or command aliases* (abbreviation **CP**).
**Note**: different operators in a single command are stylized with a space.
## πΆ Status command
- Invoke aliases: `Status`, `status` or `st`
- Syntax: `DBP CP` `count: int = 100`
- The `count` parameter is optional and defaults to 100 - the number of tweets to be parsed in the response
- Reports __current trends__ about the __database__ and the latency (ping) status
## β¬ Load command
- Invoke aliases: `Load`, `load`, `l`
- __Default syntax__: `DBP CP operator n k`; `operator: str = None`, `n: int = 5`, `k: float = 5.0` [operator, $n$, $k$ are *optional values*; their *type* and *default value* is specified]
- **Primitive load**: `CBP CD` - loads the _latest_ submission in an embedded text message
- **Complex load**: Corresponding to *Default syntax*; `operator` prefix `recent` or `r`;
`n` specifies the *number of retrieved tweets*\*, `k` specifies their *input interval* (i.e. delay)
- E.g., `--load recent 10 2` - loads 10 recent tweets and displays them with a 2 sec. delay
\*The __maximum__ number of tweet entries is **20**! This is due to the limitations of the API.
## βΉοΈ Help command
- Invoke aliases: `Help`, `help`, `h`
- Syntax: `DBP CP`
- Reports possible guidance and information about the bot
## π© Socials
[@TheSwedishBot][TWITTER] | [@michalspano][GITHUB]