Giter VIP home page Giter VIP logo

buktopuha's Introduction

BukToPuHa

Telegram bot @BukToPuHa (quiz, trivia)

English description

Bot posts questions to playing accounts and waiting for answers. Players recevices all other players is posting to bot. Right answers adds 3 scores to player, answer after hint - 1 score.

Bot comands supported:

/start - enter to the game

/stop - quit from game

/top - best players

/mytop - player's scores

/feedback text - send a feedback to bote administrator

/reloadquiz - reload question base from file (admin-only)

/ban id - ban player by Telegram ID (admin-only)

/unban id - unban player by Telegram ID (admin-only)

Data storage - simple serialized files.

Question list - text files (quiz and quiz2), questions and answers separated by asterix (*), image insert - three diez after question and filename (from images directory). Examples:

Country name###russia.gif*russia

Cat child*kitten

administrator_id in trivia.php - administrator's Telegram ID.

Bot includes question list in russian, images for questions from quiz2 - http://magir.ru/files/images.tar.gz

Описание на русском языке

Бот задает вопросы на которые отвечают игроки. Игроки видят ответы друг-друга. Первый ответивший до подсказки получает 3 балла, после подсказки - 1 балл.

Поддерживаемые команды:

/start - войти в игру

/stop - выйти из игры

/top - лучшие игроки

/mytop - очки игрока

/feedback text - отправить сообщение администратору бота

/reloadquiz - перечитать файлы с вопросами (только администратор)

/ban id - забанить игрока по Telegram ID (только администратор)

/unban id - разбанить игрока по Telegram ID (только администратор)

Хранение данных - в простых файлах с сериализацией.

Список вопросов - текстовые файлы (quiz и quiz2), вопросы и ответы разделяются звездочкой (*), вставка изображений в вопросы - три решетки после вопроса. Примеры:

Назовите страну###russia.gif*россия

Ребенок кошки*котенок

е=ё в ответах

administrator_id в файле trivia.php - Telegram ID администратора.

Бот включает базу вопросов на русском языке, изображения для вопросов из quiz2 - http://magir.ru/files/images.tar.gz

buktopuha's People

Contributors

magir avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.