Coder Social home page Coder Social logo

character_guessing's Introduction

Overview

This Telegram bot offers a fun character-guessing game using OpenAI's GPT-4 API. Users can participate in daily challenges, guess characters, and gain access to the GPT-4 model.

Features

  • Character Guessing Game: Users can guess characters in daily challenges within Telegram groups. Each user gets 5 tries and can ask for 2 hints.
  • Flexible Character Schedule: You can create a daily or weekly character schedule in the config file to keep the game interesting.
  • GPT-4 Context Customization: You can customize how the bot interacts with users by adjusting the helper_prompt_template setting in the config file.
  • Token Limit Control: You can control how many tokens are used per GPT-4 request with the gpt_tokens_per_request_limit setting. This helps manage costs and use of the OpenAI API efficiently.
  • User Engagement Tracking: The bot uses a SQLite database to keep track of user attempts, questions, and wins.
  • Using Damerau-Levenshtein algorithm for answer command.

Characters-calendar setting up example

You can define character for

[Calendar]
plan = [
    { date = "2024-03-21", prompt = "Character for the day" },
    { date = "2024-03-22", prompt = "Another character for the day" },
    # Add more dates and prompts as desired
]

Commands

Bot has following commands : answer, gpt, info, question, requests, winners

Installation

  1. Install docker. Official guide

  2. Clone the repository

    git clone https://github.com/rosenthall/character_guessing
  1. Build the docker image
    docker build -t character_guessing .
  1. Run docker container
    docker run -d --name character_guessing character_guessing

character_guessing's People

Contributors

rosenthall avatar gabrieliuss avatar

Watchers

 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.