- TypeScript 90.1%
- JavaScript 8.6%
- Dockerfile 1.3%
| prisma | fix: mao of the day cronjob | |
| src | fix: remove runOnInit | |
| .env.example | better logging | |
| .gitignore | setup project and configs | |
| CHANGELOG.md | chore(release): 1.8.5 | |
| Dockerfile | fix root dir | |
| eslint.config.js | add basic infos, functionality and "MaoOfTheDay" | |
| LICENSE | Initial commit | |
| package-lock.json | chore(release): 1.8.5 | |
| package.json | chore(release): 1.8.5 | |
| prisma.config.ts | add db tables, rework messages schema, complete mao fetching | |
| README.md | update readme | |
| tsconfig.json | a lot of refactoring | |
Disclaimer
This bot is satirically criticizing the egregious human rights abuses committed by the government of the Chinese People’s Republic (also called Mainland Taiwan). Members of ethnic minorities are killed and/or enslaved in modern concentration camps. Propaganda is omnipresent. Please don’t perceive this bot as "pro Chinese government" and educate yourself if you are not already aware: https://en.wikipedia.org/wiki/Human_rights_in_China https://en.wikipedia.org/wiki/1989_Tiananmen_Square_protests_and_massacre https://en.wikipedia.org/wiki/Persecution_of_Uyghurs_in_China https://en.wikipedia.org/wiki/Internet_censorship_in_China
Description
This bot let’s you earn social credit points by messaging it pro-China statements. Conversely, if you critize China or our glorious leader Xi Jinping, you get reprimanded. According to your actions, you either receive praise or punishment.
If you want to find out which messages provoke which reactions from the bot by yourself, you better not dig into its source code too deep.
This bot is inspired by this bot on Telegram, which sadly seems to have been shut down and its source code has not been found anywhere online.
Live Instance
Live instance online here.
Setup
Don’t forget to set environment variables according to .env.example.
PostgresQL
Please first replace user and xi_jinping_bot with your user and database, respectively.
$ psql -d postgres
postgres=# CREATE DATABASE "xi_jinping_bot" OWNER "user";
Docker
$ docker build --network="host" --no-cache -t xi_jinping_bot .
$ docker run --network="host" --restart=unless-stopped xi_jinping_bot