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
ABACUS Aroio API for Webinterfaces and App-Connections

ABACUS Aroio API for Webinterfaces and App-Connections Setup Start virtual python environment if you don't have python3 running setup: $ python3 -m ve

Abacus Aroio Developer Team 1 Apr 01, 2021
Telegram Bot Repo Capable of fetching the following Info via Anilist API inspired from AniFluid and Nepgear

Telegram Bot Repo Capable of fetching the following Info via Anilist API inspired from AniFluid and Nepgear Anime Airing Manga Character Scheduled Top

Rikka-Chan 2 Apr 01, 2022
C Y B Ξ R UserBot is a project that simplifies the use of Telegram. All rights reserved.

C Y B Ξ R USΞRBOT 🇦🇿 C Y B Ξ R UserBot is a project that simplifies the use of Telegram. All rights reserved. Automatic Setup Android: open Termux p

C Y B Ξ R 0 Sep 20, 2022
Python bot for send videos of a Youtube channel to a telegram group , channel or chat

py_youtube_to_telegram Usage: If you want to install ytt and use it, run this command: sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/nima

Nima Fanniasl 8 Nov 22, 2022
Best badge generator API to count visitors of your Repository / Account 🥇

github visitors badge A badge generator service to count visitors of your markdown file. Hello every one! In this post, I will tell you the story of m

Sᴇɴᴜ Gᴀᴍᴇʀ Bᴏʏ 〽 3 Dec 11, 2021
52pojie 吾爱破解论坛 签到 支持云函数/服务器等Py3环境运行

52pojie-Checkin 52pojie 吾爱破解论坛 签到 Py3单程序 支持云函数/服务器等Py3环境运行 只需要Cookie即可运行 新版说明 依赖包请用项目 https://github.com/BlueSkyXN/requirements-serverless 需要填写的参数有 co

BlueSkyXN 22 Sep 15, 2022
Telegram Music Bot for YouTube/SoundCloud/Mixcloud

Telegram Music Bot Telegram Music Bot for YouTube/SoundCloud/Mixcloud This bot downloads and sends the audio when someone send a YouTube/SoundCloud/Mi

Calls Music 76 Jan 02, 2023
A basic template for Creating Odoo Module

Odoo ERP Boilerplate A basic template for Creating Odoo Module. Folders inside this repository consist of snippet code and a module example. Folders w

Altela Eleviansyah Pramardhika 1 Feb 06, 2022
Rotates Amazon Personalize filters on a schedule based on dynamic templates

Amazon Personalize Filter Rotation This project contains the source code and supporting files for deploying a serverless application that provides aut

James Jory 2 Nov 12, 2021
Optimus Prime - A modular Telegram group management and drive clone bot running on Python with sqlalchemy database

Optimus Prime Bot . 🤖 A modular Telegram group management and drive clone bot r

9 Jun 01, 2022
Telegram Bot For Screenshot Generation.

Screenshotit_bot Telegram Bot For Screenshot Generation. Description An attempt to implement the screenshot generation of telegram files without downl

1 Nov 06, 2021
Upload comma-delimited files to biglocalnews.org in your GitHub Action

Upload comma-delimited files to biglocalnews.org in your GitHub Action Inputs api-key: Your biglocalnews.org API token. project-id: The identifier of

biglocalnews 1 Apr 20, 2022
Repository for the IPvSeeYou talk at Black Hat 2021

IPvSeeYou Geolocation Lookup Tool Overview IPvSeeYou.py is a tool to assist with geolocating EUI-64 IPv6 hosts. It takes as input an EUI-64-derived MA

57 Nov 08, 2022
Connect your Nintendo Switch playing status to Discord!

Disclaimer: Unfortunately, it appears that Nintendo has removed returning self-Presence in their API as of recently, making this project near obsolete

Deltaion Lee 145 Dec 30, 2022
An interactive App to play with Spotify data, both from the Spotify Web API and from CSV datasets.

An interactive App to play with Spotify data, both from the Spotify Web API and from CSV datasets.

Caio Lang 3 Jan 24, 2022
Compares and analyzes GCP IAM roles.

gcp-iam-analyzer I wrote this to help in my day to day working in GCP. A lot of the time I am doing role comparisons to see which role has more permis

Jason Dyke 37 Dec 28, 2022
Create Fast and easy image datasets using reddit

Reddit-Image-Scraper Reddit Reddit is an American Social news aggregation, web content rating, and discussion website. Reddit has been devided by topi

Wasin Silakong 4 Apr 27, 2022
Discord bot code to stop users that are scamming with fake messages of free discord nitro on servers in order to steal users accounts.

AntiScam Discord bot code to stop users that are scamming with fake messages of free discord nitro on servers in order to steal users accounts. How to

H3cJP 94 Dec 15, 2022
buys ethereum based on graphics card moving average price on ebay

ebay_trades buys ethereum based on graphics card moving average price on ebay Built as a meme, this application will scrape the first 3 pages of ebay

ConnorCreate 41 Jan 05, 2023
An open-source Discord Nuker can be used as a self-bot or a regular bot.

How to use Double click avery.exe, and follow the prompts Features Important! Make sure to use [9] (Scrape Info) before using these, or some things ma

Exortions 3 Jul 03, 2022