mildsunrise / Ciberbot-Transfemeni

Ciberbot Transfemení

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ciberbot Transfemení

Documentation:

Running the bot (First time)

  • First, you'll need to create a venv with python3.10 -m venv .venv, and join the newly created venv with source .venv/bin/activate.
  • Install all the python dependencies with pip install -r requirements.txt
  • Download and run the latest version 4 of ScyllaDB. If you are a Windows or MacOS user, you'd need to use Cassandra along with Java 13 (JRE) instead.
    Or with docker: docker run --name scylla-ciber --hostname scylla-ciber -p 9042:9042 --restart=unless-stopped -d scylladb/scylla --smp 1
  • Download Lavalink.jar, Java 13 (JRE) and the configuration file application.yml (Right click and "Save page as..."). Proceed by renaming jdk-13.0.2+8-jre to jre13 and run ./jre13/bin/java -jar Lavalink.jar.
    Or with docker: docker run --name lavalink-ciber -p 2333:2333 -d -v $PWD/application.yml:/opt/Lavalink/application.yml --restart=unless-stopped fredboat/lavalink:dev
  • Create the configuration file based on the example: cp Config.toml.example Config.toml and modify it with whichever text editor you like.
  • Run the bot with python start.py

Running the bot (Future times)

source .venv/bin/activate

# If you did the manual install.
./jre13/bin/java -jar Lavalink.jar
# If you used docker.
docker start scylla-ciber lavalink-ciber

# The database can take a bit to start.
# You can skip this and just keep running the bot every 10 seconds until it doesn't show any errors.
sleep 40

python start.py

About

Ciberbot Transfemení


Languages

Language:Python 100.0%