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 with pip install pipenv
)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:
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:
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)