Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trainb0y/xkcdbot-kt
A discord bot with xkcd related features
https://github.com/trainb0y/xkcdbot-kt
discord discord-bot jsoup kordex kotlin xkcd xkcd-comics xkcd-scraper
Last synced: 21 days ago
JSON representation
A discord bot with xkcd related features
- Host: GitHub
- URL: https://github.com/trainb0y/xkcdbot-kt
- Owner: trainb0y
- License: mit
- Created: 2022-08-03T16:37:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-16T13:06:21.000Z (over 1 year ago)
- Last Synced: 2024-12-15T21:12:13.346Z (26 days ago)
- Topics: discord, discord-bot, jsoup, kordex, kotlin, xkcd, xkcd-comics, xkcd-scraper
- Language: Kotlin
- Homepage:
- Size: 114 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xkcd bot
> **Warning**
> This bot is currently being rewritten in Rust over [here](https://github.com/trainb0y/xkcdbot-rs) and will likely no longer be maintained### About
![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)
![GitHub Actions](https://github.com/trainb0y/xkcdbot/actions/workflows/gradle.yml/badge.svg)This Discord bot provides commands for the amazing webcomic [xkcd](https://xkcd.com/).
This bot uses [Kord Extensions](https://kordex.kotlindiscord.com/) as the bot library and [JSoup](https://jsoup.org/) for parsing HTML.
### Usage
The easiest way to use the bot is to invite the main instance to your server, using [this link](https://discord.com/api/oauth2/authorize?client_id=1004497461009727538&permissions=2147502080&scope=bot).
A description of every command can be found using `/xkcd help`However, if you want to run it yourself, run the jar file (using java 17 or later).
The following .env variables are required:```
TOKEN=
TEST_SERVER=
STATUS=
```### Examples
![image](https://user-images.githubusercontent.com/66213737/182714407-a87dfe6d-faa4-41fe-9e82-3d5548c93ee2.png)
![image](https://user-images.githubusercontent.com/66213737/182717115-1e4c8b13-f37e-44d8-8257-8e18e6dcbc5d.png)