Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Urban Bot | 475 | 5 | a month ago | 41 | September 19, 2022 | 36 | mit | TypeScript | ||
🤖 The universal chatbot library based on React. Write once, launch Telegram, Discord, Facebook, ... every messenger with chatbots | ||||||||||
Dclone | 58 | 10 months ago | n,ull | mit | TypeScript | |||||
Fully working Discord clone with the essential features. Made with React + Redux + TypeScript. | ||||||||||
Iot | 27 | 13 days ago | 51 | mit | JavaScript | |||||
General purpose Internet of Things platform | ||||||||||
React Class | 17 | 3 years ago | HTML | |||||||
Sample codes and practice | ||||||||||
Scunm | 17 | a year ago | 10 | mit | JavaScript | |||||
Text Adventure Engine, Editor and Telegram Bot host | ||||||||||
Telegram Web Client | 4 | 5 years ago | JavaScript | |||||||
Telegram Web Client | ||||||||||
Tgux | 3 | 5 years ago | mit | JavaScript | ||||||
Make own stateful telegram bot based on Redux | ||||||||||
Telegram Theme Editor | 2 | 6 years ago | TypeScript | |||||||
visual theme telegram editor |
Make own stateful telegram bot based on Redux. Works on top of node-telegram-bot-api
Main features:
npm install --save tgux
import Tgux from 'tgux'
var bot = new Tgux('TOKEN HERE', {polling: true})
bot.createActivity('start', (activity) => {
activity.on('home', (msg) => {
const opts = {
reply_markup: {
keyboard: activity.keyboards,
resize_keyboard: true,
}
}
bot.sendMessage(msg.chat.id, `hello ${msg.from.first_name}`, opts)
})
activity.on('Help', ['help', 'home'])
})
bot.createActivity('help', (activity) => {
activity.on('home', (msg, history) => {
const opts = {
reply_markup: {
keyboard: activity.keyboards,
resize_keyboard: true,
}
}
bot.sendMessage(msg.chat.id, 'help', opts)
})
activity.on('back', ['start', 'home'])
})
var co = require('co');
var redisClient = require('redis').createClient();
var wrapper = require('co-redis');
var redisCo = wrapper(redisClient);
const CacheHandler = class {
set(key, value) {
return redisCo.set(key, JSON.stringify(value))
}
*get(key) {
let value = yield redisCo.get(key)
if (!value) {
return false
}
return JSON.parse(value)
}
}
bot.setCacheHandler(CacheHandler)
The MIT License (MIT)
Copyright (c) 2017 Esmaeilpour