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
短信发送 Python 程序(包含1000+有效接口)

短信轰炸 Python 程序(包含1000+有效接口) 前言 这是一个爬取网络上在线轰炸的接口,后通过 Python 异步 请求接口以达到 手机短信轰炸 的目的。 此为开源项目,仅供娱乐学习使用,使用者所带来的一切后果与作者无关,使用请遵守相关的法律法规,合理使用,请勿滥用。 食用方法 1. 爬取接

蓝鲸落 10.2k Jan 02, 2023
A delivery protection and notification system

DeliveryProtect This project builds a delivery protection and notification system, based on integration of Arduino Uno and Raspberry Pi 4. The codes a

2 Dec 13, 2021
A modified Sequential and NLP based Bot

A modified Sequential and NLP based Bot I improvised this bot a bit with some implementations as a part of my own hobby project :) Note: I do not own

Jay Desale 2 Jan 07, 2022
A Twitch bot to provide information from the WebNowPlayingCompanion extension

WebNowPlayingTwitch A Twitch bot made using TwitchIO which displays information obtained from the WebNowPlaying Compaion browser extension. Image is o

NiceAesth 1 Mar 21, 2022
Download song lyrics and metadata from Genius.com 🎶🎤

LyricsGenius: a Python client for the Genius.com API lyricsgenius provides a simple interface to the song, artist, and lyrics data stored on Genius.co

John W. Miller 738 Jan 04, 2023
Karen is a Discord Bot that will check for a list of forbidden words/expressions, removing the message that contains them and replying with another message.

Karen is a Discord Bot that will check for a list of forbidden words/expressions, removing the message that contains them and replying with another message. Everything is highly customizable.

Rafael Almeida 1 Nov 03, 2021
A Simple Telegram Bot That Can Generate Strong Password With Many Features Written In Python Using Pyrogram

Password-Generator-Bot A Simple Telegram Bot That Can Generate Strong Password With Many Features Written In Python Using Pyrogram Features Random Pas

Muhammed Fazin 17 Dec 23, 2022
Bitcoin tracker hecho con python.

Bitcoin Tracker Precio del Bitcoin en tiempo real. Script simple hecho con python. Rollercoin RollerCoin es un juego en el que puedes ganar bitcoin (y

biyivi 3 Jan 04, 2022
Official Python client for the MonkeyLearn API. Build and consume machine learning models for language processing from your Python apps.

MonkeyLearn API for Python Official Python client for the MonkeyLearn API. Build and run machine learning models for language processing from your Pyt

MonkeyLearn 157 Nov 22, 2022
Simple tool to gather domains from crt.sh using the organization name

Domain Collector: _ _ ___ _ _ _ __| | ___ _ __ ___ __ _(_)_ __ / __\___ | |

Cyber Guy 63 Dec 24, 2022
A Script to automate fowarding all new messages from one/many channel(s) to another channel(s), without the forwarded tag.

Channel Auto Message Post A script to automate fowarding all new messages from one/many channel(s) to another channel(s), without the forwarded tag. C

16 Oct 21, 2022
An unofficial client library for Google Music.

gmusicapi: an unofficial API for Google Play Music gmusicapi allows control of Google Music with Python. from gmusicapi import Mobileclient api = Mob

Simon Weber 2.5k Dec 15, 2022
Simple Telegram bot to confess to your crush this Valentine's Day

Simple Telegram bot to confess to your crush this Valentine's Day! Steps pip install python-telegram-bot Register a Telegram bot & get the token by fo

3 Mar 18, 2022
Discord bot to monitor collection of mods on the Steam Workshop and notify on update to selected discord server via Nextcordbot API.

Steam-Workshop-Monitor Discord bot to monitor collection of mods on the Steam Workshop and notify on update to selected Discord channel via Nextcordbo

7 Nov 03, 2022
Python library wrapping and enhancing the Invenio RDM REST API.

Iridium The metal Iridium is used to refine and enhance metal alloys. Similarly, this package provides an enhanced coating around the Invenio RDM APIs

Materials Data Science and Informatics 2 Mar 29, 2022
💀 The first raid tool of its kind. Inject Deadcord and raid servers directly from the Discord client.

💀 Deadcord The next upcoming Discord raid tool, the best for free. 🎉 Early Beta Released We have released an early version of Deadcord, please keep

Galaxzy 157 May 24, 2022
A modular Telegram group management bot running with Python based on Pyrogram.

A modular Telegram group management bot running with Python based on Pyrogram.

Jefanya Efandchris 1 Nov 14, 2022
YouTube playlist Files downloaded by FDM are not organized according to the original order on YouTube

Youtube-Playlist-File-Organizer YouTube playlist Files downloaded by Free Download Manager are not organized according to the original order on YouTub

David Mainoo 3 Dec 27, 2021
Discord.py(disnake) selfbot

Zzee selfbot Discord.py selfbot Version: 1.0 ATTENTION! we are not responsible for your discord account! this program violates the ToS discord rules!

1 Jan 10, 2022
Python API Client for Close

Close API A convenient Python wrapper for the Close API. API docs: http://developer.close.com Support: Close 56 Nov 30, 2022