1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 14:27:27 +00:00
Discord bot for reverse image searching
Find a file
2022-02-22 14:16:49 -06:00
commands Change semantics 2022-02-22 13:02:06 -06:00
tools Remove scraper headers 2022-02-22 13:11:35 -06:00
.gitignore Initial hikari rewrite 2022-02-21 01:10:57 -06:00
config.py Change to black formatting 2022-02-21 14:53:53 -06:00
LICENSE Initial commit 2017-09-24 01:48:05 -04:00
poetry.toml Add poetry config 2022-02-22 13:02:37 -06:00
pyproject.toml Fix pysaucenao git URL 2022-02-22 13:41:46 -06:00
README.md Update README 2022-02-22 14:16:49 -06:00
run.py Change to black formatting 2022-02-21 14:53:53 -06:00

Modufur

An experimental Hikari Discord bot for reverse image searching using SauceNAO & Kheina

Optional

A Unix-based operating system is used for the following commands
WSL can be used to run Linux on Windows, but is not required

Requirements

Git
Python 3.10+
Poetry

Installing

Clone this repository

git clone https://github.com/Myned/Modufur.git

Go to the project folder

cd Modufur

Create a virtual environment and install dependencies

poetry install

Usage

Go to the project folder

cd Modufur

Run with optimizations

poetry run python -00 run.py

Setup

Run to create config.toml
The file will automatically generate if it does not exist

guilds = [] # guild IDs to register commands, empty for global
client = 0 # bot application ID
token = "" # bot token
activity = "" # bot status
saucenao = "" # saucenao token
e621 = "" # e621 token

Updating

Go to the project folder

cd Modufur

Pull changes from the repository

git pull

Remove the virtual environment folder (necessary because of git dependencies)

rm -rf .venv

Reinstall and update the virtual environment

poetry update

Uninstalling

Remove the project folder

rm -rf Modufur

Contributing

  1. Fork this repository on GitHub
  2. Make changes to the code
  3. Format the code with Black inside the project folder
    poetry run python black .
    
  4. Commit them to the fork
  5. Create a pull request from the fork

FAQ

What happened to the public bot?

My Discord account was deleted, so a new bot had to be created.

Although public, I do not wish for it to be excessively used due to API quotas.

Credits

hikari
hikari-lightbulb
hikari-miru
pysaucenao