Skip to content

ChernegaSergiy/machinima-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

150 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MachinimaBot

MachinimaBot is a Telegram bot written in PHP. It is designed to interact with users on Telegram, providing various functionalities based on the commands it receives.

Bot Control Panel Appearance

Screenshot of the admin panel showing the management capabilities of the Telegram bot.

Features

  • Real-time interaction with users on Telegram.
  • Easy configuration using environment variables.
  • Can work in Webhook mode or in a loop to get updates continuously.
  • Various commands for managing machinimators.

Requirements

  • PHP 7.4 or higher
  • Composer for dependency management

Installation

  1. Clone the repository:

    git clone https://github.com/ChernegaSergiy/machinima-bot.git
    cd machinima-bot
  2. Install dependencies using Composer:

    composer install
  3. Copy the .env.example file to .env and set your Telegram bot token:

    cp .env.example .env

    Edit the .env file to include your BOT_TOKEN.

Usage

Run the bot:

php bot.php

If you want the bot to work on Webhook, uncomment the Webhook section in bot.php:

// $update = json_decode(file_get_contents("php://input"), true);
// if ($update) {
//     $bot->handleUpdate($update);
// }

System Initialization

The following screenshot shows the initialization process of the MORF Editorial System, which serves as the backbone of MachinimaBot. It verifies the configuration, environment variables, and initializes the bot core before entering the main loop.

.gitignore

This repository includes a .gitignore file to exclude sensitive files like .env:

# .gitignore
.env

Contributing

Contributions are welcome and appreciated! Here's how you can contribute:

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please make sure to update tests as appropriate and adhere to the existing coding style.

License

This project is licensed under the CSSM Unlimited License v2.0 (CSSM-ULv2). See the LICENSE file for details.

About

A PHP-based Telegram bot designed for real-time interaction with users, featuring various commands for managing machinimators.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages