Bu python betiği, aynı anda hem Telegram hem de Discord botu çalıştırır. Ayrı ayrı olarak çalıştırmak mümkün değildir (şimdilik).
Sohbet içerisinde doğrudan olarak sözcük anlamına bakmak için Telegram'da @tdksozlukbot [sözcük] komutunu girin; Discord'ta ise @TDK Sözlük [sözcük] mesajını iletin.
Not: Sisteminizde python3 kurulu olmalıdır.
-
Token:
- Telegram için: Bot tokeninizi
TDKSOZLUKBOT_TOKENdeğişken adıyla environment değişkenlerinize ekleyin ya datdksozlukbot.pyiçerisinde yer alantokendeğişkenini botunuzun tokeni ile değiştirin. - Discord için: Bot tokeninizi
TDKSOZLUKBOT_DISCORDdeğişken adıyla environment değişkenlerinize ekleyin ya datdksozlukbot.pyiçerisinde yer alantoken_discorddeğişkenini botunuzun tokeni ile değiştirin.
- Telegram için: Bot tokeninizi
-
Aşağıdaki komutları çalıştırın:
git clone https://github.com/berkantkz/tdksozlukbot
cd tdksozlukbot
pip install -r requirements.txt
python tdksozlukbot.pyKomutları çalıştırırken bot adını oluşturduğunuz botun adı ile değiştirmeyi unutmayın.
Issues sekmesi, telegram hesabım ya da berkantkz#7475'ten hataları bildirebilirsiniz.
This python script launches both Telegram and Discord bot at the same time. It is not possible to run separately (for now).
Use @tdksozlukbot [word] command on Telegram and send @TDK Sözlük [word] message on Discord so as to check the meaning of a word right in the chat.
Note: python3 must be installed on your system.
- Tokens
- Either add your bot's token as
TDKSOZLUKBOT_TOKENto your environment variables or change thetokenvariable inside oftdksozlukbot.pywith your bot's token for Telegram. - Either add your bot's token as
TDKSOZLUKBOT_DISCORDto your environment variables or change thetoken_discordvariable inside oftdksozlukbot.pywith your bot's token for Discord.
- Either add your bot's token as
- Run the commands below:
git clone https://github.com/berkantkz/tdksozlukbot
cd tdksozlukbot
pip install -r requirements.txt
python tdksozlukbot.pyDo not forget to replace the name of the bot with the one you created while using.
Issues can be reported via Issues tab or my telegram account or berkantkz#7475.