Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/revolter/dexrobot
Telegram Bot that searches definitions for Romanian words using dexonline.ro
https://github.com/revolter/dexrobot
bot python python3 telegram telegram-bot
Last synced: 15 days ago
JSON representation
Telegram Bot that searches definitions for Romanian words using dexonline.ro
- Host: GitHub
- URL: https://github.com/revolter/dexrobot
- Owner: revolter
- License: gpl-3.0
- Created: 2017-04-03T23:05:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T08:00:44.000Z (over 1 year ago)
- Last Synced: 2024-06-11T17:36:11.487Z (5 months ago)
- Topics: bot, python, python3, telegram, telegram-bot
- Language: Python
- Homepage: https://t.me/DexRoBot
- Size: 4.14 MB
- Stars: 17
- Watchers: 3
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dex Bot
## Introduction
Telegram Bot that uses [dexonline.ro](https://dexonline.ro)'s API to search
Romanian words definitions. The bot currently runs as
[@DexRoBot](https://t.me/DexRoBot).### Main functionality
### Toggle links feature
### Word of the day feature
## Getting Started
These instructions will get you a copy of the project up and running on your
local machine for development and testing purposes.### Prerequisites
You need to install [Homebrew](https://brew.sh) by running:
```sh
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```### Installing
Clone the project and install the dependencies by running:
```sh
cd /desired/location/path
git clone https://github.com/revolter/DexRoBot.git
cd DexRoBotcurl https://pyenv.run | bash
export PATH="$HOME/.pyenv/bin:$PATH"
sudo apt update
sudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
pyenv install 3.9.0
pyenv global 3.9.0curl -sSL https://install.python-poetry.org | python -
poetry shell
poetry installcd src
cp config_sample.cfg config.cfg
```On Linux, you might need to install the development package of Python by
running:```sh
sudo apt install python3-dev
```before trying to install the dependencies using `pipenv`.
Then, edit the file named `config.cfg` inside the `src` folder with the correct
values and run it using `./main.py --debug`.Use `exit` to close the virtual environment.
## Deploy
You can easily deploy this to a cloud machine using
[Fabric](http://fabfile.org):```
cd /project/location/pathpoetry shell
cp fabfile_sample.cfg fabfile.cfg
```Then, edit the file named `fabfile.cfg` inside the root folder with the correct
values and run Fabric using:```
fab setup
fab deploy
```You can also deploy a single file using `fab deploy --filename=main.py` or `fab
deploy --filename=pyproject.toml`.