All Projects → Piterden → Syntax Highlighter Bot

Piterden / Syntax Highlighter Bot

Syntax highlighter bot for telegram.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Syntax Highlighter Bot

Rocketgram
Modern and powerful asynchronous telegram bot framework.
Stars: ✭ 37 (-38.33%)
Mutual labels:  bot, telegram
Telebot
The easy way to write Telegram bots in Node.js
Stars: ✭ 1,096 (+1726.67%)
Mutual labels:  bot, telegram
Moviemagnetbot
🤖 telegram bot for movies
Stars: ✭ 39 (-35%)
Mutual labels:  bot, telegram
Tnt Village Bot
Bot Telegram per la ricerca di release pubblicate da TNTVillage
Stars: ✭ 37 (-38.33%)
Mutual labels:  bot, telegram
Telegram Bot Groupagree
An advanced poll bot for Telegram
Stars: ✭ 52 (-13.33%)
Mutual labels:  bot, telegram
Twitter Downloader Telegram Bot
🤖 Telegram bot for download video from twitter.
Stars: ✭ 37 (-38.33%)
Mutual labels:  bot, telegram
Telegram Test Api
Simple implimentation of telegram API which can be used for testing telegram bots
Stars: ✭ 42 (-30%)
Mutual labels:  bot, telegram
Rssbot
Lightweight Telegram RSS bot for notifications only. 用于消息通知的轻量级 Telegram RSS 机器人
Stars: ✭ 952 (+1486.67%)
Mutual labels:  bot, telegram
Nikoro
A plugin-based, all-in-one, Telegram Bot written in Node.js
Stars: ✭ 51 (-15%)
Mutual labels:  bot, telegram
Marvin
The paranoid bot (framework)
Stars: ✭ 51 (-15%)
Mutual labels:  bot, telegram
Feedforbot
Bot for forwarding updates from RSS/Atom feeds to Telegram
Stars: ✭ 35 (-41.67%)
Mutual labels:  bot, telegram
Bot Telegram
Exemplo de como criar um BOT para o melhor app de mensagens do mundo: Telegram.
Stars: ✭ 53 (-11.67%)
Mutual labels:  bot, telegram
Leavexchat Bot
Keep WeChat messages but leave WeChat. This Telegram bot is here to release you.
Stars: ✭ 32 (-46.67%)
Mutual labels:  bot, telegram
Pockebot
Read It Later for Telegram
Stars: ✭ 56 (-6.67%)
Mutual labels:  bot, telegram
Spytrojan keylogger
[Solo para programadores] Troyano espía | Keylogger solo para Windows, se replica en el sistema y se inicia automaticamente al iniciar sesión. | Envío de registro mediante [Base de Datos], [Gmail] o [BotTelegram].
Stars: ✭ 32 (-46.67%)
Mutual labels:  bot, telegram
Gpt2 Telegram Chatbot
GPT-2 Telegram Chat bot
Stars: ✭ 41 (-31.67%)
Mutual labels:  bot, telegram
Money bot
Docker-containered bot. Added to a group chat, she replies to any message containing price and currency pattern. Live!
Stars: ✭ 8 (-86.67%)
Mutual labels:  bot, telegram
Pytelbot
A playful bot in telegram
Stars: ✭ 12 (-80%)
Mutual labels:  bot, telegram
Enterprisealrobot
An anime themed telegram group management bot
Stars: ✭ 49 (-18.33%)
Mutual labels:  bot, telegram
Telepyth
Telegram notification with IPython magics.
Stars: ✭ 54 (-10%)
Mutual labels:  bot, telegram

Syntax Highlighter Bot

Travis (.org) GitHub search hit counter GitHub code size in bytes

The bot for creating an image with highlighted code from a message.

Overview

This bot was written on top of the Telegraf.js bot framework, so all you need to have is the Node.js > v6.

Usage

Demo (WIP version).

The bot listens for entities type of pre in any text message. It means, it will render all pieces of text, wrapped in triple backticks (multiline code). Also you could force the language, writing its name on the first line, right after backticks. Just like on the GitHub.

Look at the example of a code should be handled by the bot:

\`\`\`js
/**
 * Show themes list
 */
bot.command('theme', (ctx) => isPrivateChat(ctx)
  ? ctx.replyWithMarkdown(
    messages.themeChoose(ctx.state.user.theme),
    Markup.keyboard(themesKeyboard(themes)).oneTime().resize().extra()
  )
  : ctx.reply(messages.themeGroup)
)\`\`\`

Commands

  • /start - Initial launch of the bot.
  • /theme - Shows the list of included themes and allows you to select a theme which you like more.
  • /langs - Shows the list of supported languages.

Installing

First of all clone this repository and install dependencies. Run in the terminal:

$ git clone [email protected]:Piterden/syntax-highlighter-bot.git
$ cd syntax-highlighter-bot
$ npm i

Then you need to create and fill the new .env file:

$ cp .env.example .env
$ editor .env

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Donate

  • BTC 3F275vPSCvYW19MHZqSjw79fEwwU4MbTgV
  • LTC MGMCQB3QAcrSBjU3eGJviqB2J2f5BNVRGr
  • DOGE D5m69FRDGEn3G3xuakvqTxUpGVt6NegKJp
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].