• Stars
    star
    100
  • Rank 340,703 (Top 7 %)
  • Language
    PHP
  • License
    GNU Affero Genera...
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Telegram bot providing games that can be played in any chat via inline keyboards.

Inline Games License Telegram

A Telegram bot that provides real-time multiplayer games that can be played in any chat.

You can see the bot in action by messaging @inlinegamesbot.

Currently hosted on Fly.io platform.

Currently available games:

  • Tic-Tac-Toe
  • Tic-Tac-Four (@DO97)
  • Elephant XO (@DO97)
  • Connect Four
  • Rock-Paper-Scissors
  • Rock-Paper-Scissors-Lizard-Spock (@DO97)
  • Russian Roulette
  • Checkers
  • Pool Checkers

Deploying

Heroku

Instructions

Use this button to begin deployment:
Deploy

Assuming everything was entered correctly your bot should be instantly working - if it's not you should try running php bin/console post-install inside the app.

You will also want to add Heroku Scheduler addon and set up a hourly task to run the following command to clean up expired games from the database:

  • php bin/console cron

If this command times out too fast try using something like this instead: php -d max_execution_time=2700 bin/console cron

Google Cloud Platform

Instructions
  • Install dependencies with composer install
  • Copy env_variables.example.yaml into env_variables.yaml and fill out the details
  • Run the deployment command: gcloud app deploy --project YOUR-PROJECT-NAME-HERE app.yaml cron.yaml
  • Visit https://YOUR-PROJECT-NAME-HERE.appspot.com/admin?a=post-install to perform post-install tasks

Fly.io

Instructions
  • flyctl apps create
  • flyctl volumes create data --size=1
  • flyctl secrets set BOT_TOKEN=
  • flyctl secrets set BOT_USERNAME=
  • flyctl secrets set BOT_WEBHOOK=YOUR-APP-NAME.fly.dev
  • flyctl secrets set BOT_SECRET=
  • If you want to use web+worker setup you have to replace web: line in Procfile
  • flyctl deploy

Note on translations

Translations support is implemented but it is not used mainly because translated text would be displayed to both players - this could be problematic in "gaming" groups - people setting language that other player can't understand!

Contributing

See CONTRIBUTING for more information.

License

See LICENSE.

More Repositories

1

pihole-updatelists

Update Pi-hole's lists from remote sources easily
PHP
1,163
star
2

e621-Batch-Reverse-Search

Perform reverse search for all images in a directory (using e621.net/iqdb_queries, saucenao.com, fuzzysearch.net)
PHP
53
star
3

USharpVideo-Subtitles

This prefab adds subtitles support to USharpVideo (or any other video player) in VRChat
C#
27
star
4

monolog-telegram

Monolog handler that sends logs through Telegram bot to any chat in HTML format
PHP
22
star
5

e621-Pool-Downloader

Script making downloading and updating image pools from e621.net easier
PHP
17
star
6

q3serverlist

Simple library for querying Quake 3 based master servers and it's game servers
PHP
15
star
7

pihole-readonly-rootfs

Installing Pi-hole on read-only rootfs system to prevent SD card corruption problem (with data partition for write-required stuff)
Shell
14
star
8

rclone-backup

Backup your important files to cloud service.
Batchfile
12
star
9

Sons-Of-The-Forest-Inventory-Editor

A simple inventory editor for Sons Of The Forest game
PHP
8
star
10

e621-telegram-bot

Simple Telegram bot that serves stuff from e621.net
PHP
6
star
11

puush-linux

Bash script to provide puush.me screenshot and file upload functionality for linux users.
Shell
6
star
12

asuswrt-scripts

Collection of scripts that can run on stock Asus routers (also on Merlin's firmware and its forks)
Shell
6
star
13

ALVR-USB

Helper application for using ALVR through USB connection
C#
5
star
14

telegram-notify

Send messages to Telegram from command line and handle systemd service failures
Shell
5
star
15

scripts

Various scripts that do not need their own repository. Most of them are for Linux / Raspberry Pi, Pi-hole or WireGuard
Shell
4
star
16

simple-monitoring

Simple monitoring skin for Rainmeter
C++
4
star
17

ED-Hyperdiction-Detector

Warn about hyperdiction before it happens
C#
3
star
18

asuswrt-usb-raspberry-pi

Connect Raspberry Pi to Asus router through USB port using Ethernet Gadget functionality
Shell
3
star
19

SteamVR-PhasmoMatrix

Phasmophobia Matrix as SteamVR overlay application
C#
3
star
20

e621-api

Wrapper for e621.net/e926.net API written in PHP
PHP
3
star
21

pihole-query-lists-popup

This user script allows querying the lists directly from the listing pages
JavaScript
3
star
22

Vermintide-2-Builds-Organizer

Simple tool for organizing builds and equipment library
PHP
2
star
23

wg-peers

Simple script for managing Wireguard peers
Shell
1
star