OpenSource DiscordBot
Get the bot on your server: https://discordapp.com/api/oauth2/authorize?client_id=677860409146867733&permissions=88128&scope=bot
Please fork for contribution
git clone https://github.com/YourUserName/DiscordSearchBot
cd DiscordSearchBot
pipenv install
(install pipenv withpip install pipenv
)- run the programm with
pipenv run python run.py
(Configure the settings with environment variables (infos in the ressources/config.py oder docker-compose.yml))
Set the DISCORD_BOT_TOKEN and GOOGLE_API_TOKEN in the docker-compose.yml
Do not upload your customized docker-compose file to github
docker-compose pull
docker-compose build
docker-compose up -d
Please set following mysql environment variables:
- DB_HOST
- DB_PORT
- DB_USER
- DB_PASSWORD
- DB_NAME
- GOOGLE_API_TOKEN (get your api key here: https://developers.google.com/custom-search/v1/overview)
- BOT_TOKEN (get your bot token here: https://discordapp.com/developers)
Google CX is a customized search. You can create this keys here: https://cse.google.com/cse/all (sometimes you can get an error 500). In this console you can configure the search_query (say google on what websites google search. for example: *.stackoverflow.com).
LOG_GUILD = The guild id of your log server
LOG_CHANNEL = The id of the log channel (The channel must be on the LOG_GUILD)
You can set the LOG_GUILD and LOG_CHANNEL to null or dont set this environments to disable the log feature
If you would like to contribute to our open source project, use this checklist step by step:
- fork our project
- Develop your changes
- test it
- if you are ready, push it to development on your fork
- create pull request from your fork (development branch) to our project (development branch). Please describe your changes in the merge request to make it easier for us to check your code. When your code is okay, we merge your pull request.
Please come to our discord server so we can ask you questions, if we have questions.
We have a own discord server: https://discord.gg/2p8uvTD (please join us and help us :D)