A discord bot for creating github repo issues.

Related tags

Third Party APIs dib
Overview

Discord Issue Bot

A discord bot for creating github repo issues.

Requires: php-zlib, php-json, mysql, composer
Tested on: Ubuntu 20.04.3, PHP Version 7.4.3, ZLib Version 1.2.11, MySQL Version 8.0.27

Download the repo then run:
composer require team-reflex/discord-php

Edit the file bot.php and set the config values:
//Config
$db_server = "localhost";
$db_user = "";
$db_pass = "";
$dbname = "";
$discord_token = "";
$git_token = "";
$git_user = "";
$superadmin = ""; //discord id of the main admin account (cannot be removed by others using the .remove command)
//Config

Only users that have been added using the .add command may use the bot. The user set as superadmin in the config always has access.
New issue titles and bodies must be wrapped in double quotes and must not contain double quotes (replace them with anything else).

How to find your discord id: https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-
How to acquire a discord token and add your bot to your server(s): https://discordpy.readthedocs.io/en/stable/discord.html

Recommended bot permissions: Read Messages/View Channels, Send messages, Read Message History

Run the bot from a command line:
php bot.php

I recommend running the bot using a linux screen, I have included a shell script which can be used via cron to keep the bot running. You will need to modify the path used on line 4 of dib.sh.

Usage

The available commands are:
.help
.add @username
.issue "git repo name" "New Issue Title" "New Issue Body"
Or reply to any message to use its content as the body of the new git issue:
.issue "git repo name" "New Issue Title"
.listusers
.remove @username

You might also like...
laravel package untuk memudahkan penggunaan MCA dengan Telegram Bot USDI di aplikasi Universitas Udayana.

MCA KubeMQ Laravel laravel package untuk memudahkan penggunaan MCA dengan Telegram Bot USDI di aplikasi Universitas Udayana. Motivasi Proyek ini berfu

 Telegram bot for CC Checker with hella lotta features.
Telegram bot for CC Checker with hella lotta features.

SDMN CHECKER BOT Telegram bot for CC Checker with hella lotta features. 📝 Table of Contents Dependencies / Limitations Future Scope Setting up a Hero

Integrate Your PHP Code With Telegram Bot API for Beginner

Documentation[https://core.telegram.org/bots/api] Resource[https://github.com/bachors/KBBI.sql] Integrate Your PHP Code With Telegram Bot API for Begi

Create and manage advanced polls with this Telegram Bot which has many features available!
Create and manage advanced polls with this Telegram Bot which has many features available!

MasterPollBot Create and manage advanced polls with this Telegram Bot which has many features available! Requirements Local Telegram Bot API or a webh

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.

Telegram Bot API - PHP SDK Telegram Bot PHP SDK lets you develop Telegram Bots in PHP easily! Supports Laravel out of the box. Telegram Bot API is an

Simple telegram auto reminder BOT with PHP

Telebot Script Telegram BOT Auto Reminder Dibuat pake PHP OOP Sebenernya bukan buat dipublish sih, ini cuma buat praktek PHP OOP sama praktek Commit &

Simple php telegram bot.
Simple php telegram bot.

PHPTGBot Description Simple php telegram bot. Just for fun 🚧 Work In Progress 🚧 Maybe found error, since im not tested yet! Still on working, so be

A simple php telegram bot to check if the bin is valid or not!

Bin-Checker A simple php telegram bot to check if the bin is valid or not! Deploy FORK the Repo by clicking HERE Add your bot token in LINE 12 THEN DE

Bin checker telegram bot
Bin checker telegram bot

BIN Checker Bot Test Bot: Bin Checker Bot Env API_TOKEN Bot token. START_MSG Custom start message. Deploy Heroku Railway ⚠ Warn: Still not Tested on R

Owner
null
PHP Telegram Bot based on the official Telegram Bot API with iTelegram Class.

iTelegram PHP Telegram Bot based on the official Telegram Bot API Bots: An introduction for developers Bots are special Telegram accounts designed to

iNeoTeam | آی نئو 5 Nov 9, 2022
PHP Telegram Bot based on the official Telegram Bot API

PHP Telegram Bot based on the official Telegram Bot API

null 4 Dec 8, 2021
PHP GitHub Sponsors is a package that integrates directly with the GitHub Sponsors GraphQL API.

PHP GitHub Sponsors PHP GitHub Sponsors is a package that integrates directly with the GitHub Sponsors GraphQL API. Using it, you can easily check if

GitHub PHP 101 Nov 2, 2022
Alfred workflow to convert a time to dynamic Discord timestamp

Whencord for Alfred Takes a time string and converts it to a dynamic timestamp for sharing in Discord. Download Download the latest release here. Note

null 2 Jan 6, 2022
Embed live members' count from all your Discord server in your WordPress website

Live Members Counter For Discord This is the repository for the WordPress plugin: Live Members Counter for Discord Live Members Counter For Discord is

null 1 Oct 30, 2021
A discord-feature rich API plugin for PMMP.

DiscordBot DiscordBot a core plugin that provides an extensive API for plugins to interact with a discord bot creating endless possibilities. Examples

null 2 Jan 9, 2022
A telegram bot to check credit cards. written in php & py

MRBANKER BOT A telegram bot to check credit cards. written in php & py. You can find me on telegram STEP1: goto botfather create a bot copy the token

Nitin1818 48 Dec 30, 2022
NovaGram - An elegant, Object-Oriented, reliable PHP Telegram Bot Library

An elegant, Object-Oriented, reliable PHP Telegram Bot Library Full Documentation • Public support group Examples • Features • Installation ?

Gaetano 165 Jan 6, 2023
A tool for sending fast and managed messages to Telegram bot users

???? HiToAll A tool for sending fast and managed messages to Telegram bot users About In some telegram bots programmed with php language, if there are

Matin Najafi 3 Oct 3, 2021
telegram bot for sell virtual number

Telefake Telegram bot for sell virtual number (fully automatic) Installation create bot in telegram upload script in website with php and ssl (https)

reza malekpour 4 Aug 20, 2022