Skip to content

Latest commit

 

History

History
90 lines (59 loc) · 2.25 KB

README.md

File metadata and controls

90 lines (59 loc) · 2.25 KB

FunnyCoffee

yes. basically batchest v2 cuz most codes are recycled from BatChest but this one uses different API

How to run

you can execute this install script to setup FunnyCoffee.

otherwise, you can follow these steps.

Download the sources

Download from releases or
clone the latest commit

git clone -b master https://github.com/HugeBrain16/FunnyCoffee

Install dependencies

Using pip

pip install -r requirements.txt

Using poetry

poetry install

or

poetry update

environment variable (Optional)

this is optional but, if you don't want to get enter token prompts
you can create .env file and put ur token there in specific keys
for example in .env:

TOKEN=asdasdasidjoiajsdoij23-0iasidjoiajsd

Setup Lavalink server

check this if u dont want to host ur own lavalink server, otherwise u can follow these steps

make sure you have Java 13 or later installed.
Download Java 13 here if you don't have it installed.

1). Download Lavalink.jar file here
2). Create new configuration file with the name application.yml, make sure to put the application config file alongside the Lavalink.jar file.
3). Edit the application.yml and paste the content of this example config

NOTE: if you changed the password in the application.yml file, you have to edit your .env file, or your environment variables.
set a new key named LAVALINK_PASSWORD and set the value to your lavalink server password, ex: LAVALINK_PASSWORD=youshallnotpass
(for hostname it's LAVALINK_HOSTNAME, default is 127.0.0.1)

4). Run Lavalink server:

java -jar Lavalink.jar

Run bot script

Linux or MacOS

python3 bot.py

Windows

py -3.x bot.py

Poetry

poetry run python bot.py