Bot Telegram per creare e gestire un Babbo Natale Segreto con amici ecc

Overview

Babbo Natale Segreto: Telegram Bot

Bot Telegram per creare e gestire un Babbo Natale Segreto con amici ecc.

GitHub issues GitHub forks GitHub stars GitHub license Twitter

Che cos'è?

Il Babbo Natale Segreto è un gioco di gruppo in cui ogni partecipante, tramite un'estrazione a sorte del nome di ciascun partecipante, farà un regalo alla persona pescata dal sorteggio. Essa però non saprà da chi invece riceverà il regalo. L'apertura dei regali avverrà nella settimana dal 20 in poi.

Come scaricare e configurare bot

  1. Scarica il pacchetto di Babbo Natale Segreto da: https://github.com/Kekko01/Babbo-Natale-Segreto-Telegram-Bot/archive/refs/heads/main.zip
  2. Estrailo ed e nella cartella
  3. Modificare il file credenziali.py con le informazioni del Database e con il token di Telegram
    telegrambot = telepot.Bot("") #token del bot telegram
    host="", #indirizzo del database
    user="", #utente del database
    passwd="", #password del database
    database="bns" #nome del database
  4. Creare un database su MySQL o simili (MariaDB ecc) col nome bns ed importare il file bns.sql
  5. Installare da pip telepot e mysql.connector tramite i comandi:
    pip install telepot
    pip install mysql-connector-python
  6. Avviare il bot con il comando:
    python bot.py

Come gestire il Babbo Natale Segreto

Quando si avvia il bot, il bot puo ricevere già le iscrizioni.

Come gestisco le iscrizioni?

Chi parteciperà dovrà inviare il comando /iscriviti e il bot ti risponderà con il suo ID, lui ti inoltrerà questo messaggio e dovrai inserirlo nel database, nella tabella partecipanti, in chat_id metterai l'ID che ti invierà la persona da iscrivere, e in nome il nome della persona.

Come faccio a chiudere le iscrizioni?

Molto semplice, in credenziali.py c'è la variabile iscrizioni_aperte, basta cambiarlo con False,

Come faccio a fare l'estrazione

Basterà lanciare pescaggio.py.

python pescaggio.py

Come si fa a controllare a chi bisogna fare il regalo?

Basterà fare /destinario.

Come faccio ad inviare un messaggio ai partecipanti del Babbo Natale Segreto?

Basterà usare il file inviadestinatario.py e scrivere il messaggio alla riga 11.


FAQ

Come installo Python?

Basta andare su https://www.python.org/downloads/ e scaricare la versione per il tuo computer (io consiglio installare python 3.9.x, e se avete Windows 10 o Windows 11 dallo Store di Microsoft).

Come installo un Database MySQL?

Ci sono varie strade, se avete un Raspberry e volete usarlo per il bot potete installarlo lì, sennò puoi usare XAMPP.

Come creo il bot su Telegram?

Telegram ha scritto una guida breve qui: https://core.telegram.org/bots#3-how-do-i-create-a-bot (è in inglese ma è molto semplice).

Che comandi devo inserire da Bot Father?

start - Mostra il messaggio di avvio
info - Mostra le info sull'attività
iscriviti - Iscriviti a Babbo Natale Segreto!
chipartecipa - Vedi la lista delle persone che devono partecipare!
destinatario - Vedi a chi devi fare il regalo

Ho un problema, cose posso fare?

Molto semplice, basta segnalarlo o trovarlo su: https://github.com/Kekko01/Babbo-Natale-Segreto-Telegram-Bot/issues.

Owner
Francesco Ciociola
Computer Enthusiast | 20 years old | Italy Student at the Università degli Studi di Parma, but I love my hometown, Manfredonia. Member of CTF Team @havce
Francesco Ciociola
A Discord chat bot for the Tardsquad guild (Discord name for server).

Tardsquad Discord Bot A Discord chat bot for the Tardsquad guild (Discord name for server). Resouces Discord Developer Portal A general tutorial for a

Tardsquad Quality Code Inc. 4 Jul 26, 2022
Petpy is an easy-to-use and convenient Python wrapper for the Petfinder API.

Petpy is an easy-to-use and convenient Python wrapper for the Petfinder API. Includes methods for parsing output JSON into pandas DataFrames for easier data analysis

Aaron Schlegel 27 Nov 19, 2022
Fully Dockerized cryptocurrencies Trading Bot, based on Freqtrade engine. Multi instances.

Cryptocurrencies Trading Bot - Freqtrade Manager This automated Trading Bot is based on the amazing Freqtrade one. It allows you to manage many Freqtr

Cédric Dugat 47 Dec 06, 2022
Twitter Analysis of MIUUL CEO

Twitter Analysis of MIUUL CEO Business Problem I got last @mvahitkeskin 184 twee

Çağrı Karadeniz 6 Mar 12, 2022
inventory replenishment for a hospital.

Inventory-Replenishment Inventory-Replenishment for a hospital that would like to explore how advanced anlytics may help automate their decision proce

1 Jan 09, 2022
Scheduled Block Checker for Cardano Stakepool Operators

ScheduledBlocks Scheduled Block Checker for Cardano Stakepool Operators Lightweight and Portable Scheduled Blocks Checker for Current Epoch. No cardan

SNAKE (Cardano Stakepool) 4 Oct 18, 2022
Backlog API v2 Client Library for Python

BacklogPy - Backlog API v2 Client Library for Python BacklogPy is Backlog API v2 Client Library for Python 2/3 Install You can install the client libr

Koudai Aono 7 Dec 16, 2022
Fast discord token checker with high cpm

Discord-Token-checker Fast discord token checker with high cpm preivew Download git clone https://github.com/TusTusDev/Discord-Token-checker pip insta

Tustus 1 Oct 15, 2021
Dicha herramienta esta creada con una api... esta api permite enviar un SMS cada 12 horas dependiendo del pais... Hay algunos paises y operadoras no están soportados.

SMSFree pkg install python3 pip install requests git clone https://github.com/Hidden-parker/SMSFree cd SMSFree python sms.py DISFRUTA... Dicha herrami

piter 2 Nov 14, 2021
🕵️‍♂️ Investigate Google Accounts with emails.

Description GHunt is an OSINT tool to extract information from any Google Account using an email. It can currently extract: Owner's name Last time the

mxrch 13.1k Jan 01, 2023
A bot to share Facebook posts.

bot_share_facebook a bot to share Facebook posts. install & clone untuk menjalankan anda bisa melalui terminal contohnya termux, cmd, dan terminal lai

Muhammad Latif Harkat 7 Dec 07, 2022
High-Resolution Differential Z-Belt Mod for V0 (with optional Kirigami support)

V0-DBM This is a high-resolution differential pulley system belt mod for the Z-axis on Voron 0 with optional Kirigami Bed support. NOTE: Alpha version

Simon Küppers 11 Jan 07, 2023
A telegram bot that sends a meme a day, from reddit's top meme of the day

MemeBot A telegram bot that sends a meme a day, from reddit's top meme of the day You can use the bot either with an external scheduler (ex: pythonany

Michele Vitulli 1 Dec 13, 2021
Plugin for Sentry which allows sending notification via Telegram messenger.

Sentry Telegram Plugin for Sentry which allows sending notification via Telegram messenger. Presented plugin tested with Sentry from 8.9 to 9.1.1. DIS

Shmele 208 Dec 30, 2022
This discord bot will help you to control your target through PickleC2

PickleC2-Bot This discord bot will help you to control your target through PickleC2 WHAT's a PickleC2? PickleC2 is a simple C2 framework written in py

4 Jun 25, 2022
Passive income method via SerpClix. Uses a bot to accept clicks.

SerpClixBotSearcher This bot allows you to get passive income from SerpClix. Each click is usually $0.10 (sometimes $0.05 if offer isnt from the US).

Jason Mei 3 Sep 01, 2021
Azure Neural Speech Service TTS

Written in Python using the Azure Speech SDK. App.py provides an easy way to create an Text-To-Speech request to Azure Speech and download the wav file.

Rodney 1 Oct 11, 2021
A python script to send sms anonymously with SMS Gateway API. Works on command line terminal.

incognito-sms-sender A python script to send sms anonymously with SMS Gateway API. Works on command line terminal. Download and run script Go to API S

ʀᴇxɪɴᴀᴢᴏʀ 1 Oct 25, 2021
wrapper for facebook messenger

pyfacebook pyfacebook library for python. Requirements common Help Got a question? File a GitHub issue. Contributing Bug Reports & Feature Requests Pl

Luis Mayta 3 Nov 12, 2021
This is a crypto trading bot that scans the Binance Annoucements page for new coins, and places trades on Gateio

gateio-trading-bot-binance-announcements This Gateio x Binance cryptocurrency trading bot scans the Binance Announcements page and picks up on new coi

Andrei 1.2k Jan 01, 2023