Skip to content

Instantly share code, notes, and snippets.

View NightSommelier's full-sized avatar

Sommelier NightSommelier

View GitHub Profile
#!/bin/sh
if command -v sudo; then
sudo apt install -y zsh curl
echo "Done!"
elif [ $(id -u) -eq 0 ]; then
apt install -y zsh curl
echo "Done!"
else
echo "You need access to install zsh"

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install plugins.

@NightSommelier
NightSommelier / multibot.py
Created September 20, 2022 13:03 — forked from deptyped/multibot.py
Aiogram multiple bots handling (Based on https://github.com/Forden/telegram-multi-echo-bot)
from aiogram import Bot, Dispatcher, types
from aiohttp import web
TOKENS = ['bot123:123...'] # List of bot tokens
SERVER_HOST, SERVER_PORT = '0.0.0.0', 1234 # Host and port of web server
WEBHOOK_SERVER_HOST, WEBHOOK_SERVER_PORT = '0.0.0.0', 1234 # Host and port of webhook. May differ when using a reverse proxy
bot = Bot(token='', validate_token=False)
dp = Dispatcher(bot=bot)