rvalien / GladOs

my little helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

glados

Code style: black Python-Versions GitHub license Discord.py-Version

description

Create for experiments. Now it helps me with routine.

bot's commands:

/bill

I don't think that you need it. It's specified for small virtual operator.

/internet

I don't think that you need it. It's specified for small virtual operator.

/weather

Weather in my hometown.

Usage:

/weather - example: 21.4C, ясно

🏡

send flat meters data to database.

send health data to database.


setup

heroku needs requirements.txt to build the app so make it with the command below if you use poetry

poetry export -f requirements.txt --output requirements.txt --without-hashes

set environment variables
TELEGRAM_TOKEN- bot token
WEATHER_TOKEN - token for openweathermap.org api
DATABASE_URL - postgres db connection string
DELAY- seconds for repeating background tasks
ADMIN- telegram id to notifications

create table

/* postgres */
CREATE TABLE public.chat_ids (
	chat_id int4 NULL,
	"name" varchar NULL
);

deploy

Deploy


todo

move from redis to aioredis
redis do postgres backup (new users, TODOes...)

Wanna new features? Create an issue on this repo.

About

my little helper

License:MIT License


Languages

Language:Python 99.9%Language:Procfile 0.1%