Skip to content

sauce man is a discord bot to wrapper the search feature for who want make some records.

License

Notifications You must be signed in to change notification settings

hong539/sauce_man

Repository files navigation

sauce_man

sauce_man is a discord bot to wrapper the search feature for who want make some records or fix the broken preview from some outside URLs.

To-do-list

working

  • update Dockerfile
  • migrage from pyenv+pipenv to pyenv+poetry
  • test discord.py
  • find a better and safe way to set env
  • make app_commands
    • search history messages from a specific channel
    • dump history messages from a specific channel
      • calculate the range <= 100 for iterator to append all history to the stored list

pending

done

  • separate function load_config from class or not? (Hint: Like django settings.py)
  • postgresql db init

quick-start

#setting up python version
pyenv local 3.11.4

#Specify which version of Python virtualenv should use.
pipenv --python 3.11.4

#Spawns a shell within the virtualenv.
pipenv shell

#packages
pipenv install discord.py
pipenv install PyYAML
pipenv install pandas
pipenv install SQLAlchemy
pipenv install psycopg2

#run this bot
cd src/
python3 main.py

#freeze requirements.txt
pipenv requirements > requirements.txt

#docker container build/run
docker build . -t docker.io/focal1119/sauce_man:test
docker run -d --env-file=.env --name sauce_man docker.io/focal1119/sauce_man:test

#docker compose
#up and run in background
docker compose up -d

#down
docker compose down

#podman container build/run
podman build . -t docker.io/focal1119/sauce_man:test
podman build . --no-cache -t docker.io/focal1119/sauce_man:test
podman run -d --env-file=.env --name sauce_man docker.io/focal1119/sauce_man:test

misc

Important!!!

== We're Using GitHub Under Protest ==

This project is currently hosted on GitHub. This is not ideal; GitHub is a proprietary, trade-secret system that is not Free and Open Souce Software (FOSS). We are deeply concerned about using a proprietary system like GitHub to develop our FOSS project. We have an open {bug ticket, mailing list thread, etc.} where the project contributors are actively discussing how we can move away from GitHub in the long term. We urge you to read about the Give up GitHub campaign from the Software Freedom Conservancy to understand some of the reasons why GitHub is not a good place to host FOSS projects.

If you are a contributor who personally has already quit using GitHub, please check this resource for how to send us contributions without using GitHub directly.

Any use of this project's code by GitHub Copilot, past or present, is done without our permission. We do not consent to GitHub's use of this project's code in Copilot.

Logo of the GiveUpGitHub campaign

About

sauce man is a discord bot to wrapper the search feature for who want make some records.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published