Skip to content

devxco/Telegram-AI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram-AI

This is the code of the Telegram bot for AIKIN

This bot is an Long Term Memory AI (Artificial Intelligence) called AIKIN.

The name A.I.K.I.N. stands for Artificial Intelligence Knowlege Input Notation.

The username of the bot is aikin_bot

You can chat with it right away!
Just message @aikin_bot or click this link: t.me/aikin_bot

Also:

The bot has an included image recognisation feature.
Just send a Picture and let AIKIN describe it!

Note: This feature is heavily in development and might not work properly...

NOTE:

This is only the bot (client) and NOT the AI itself.

The bot itself:


       Screenshots       


Developer Info:

The bot used to call the NullDev AIKIN API Endpoint like

var options = {
  uri: "https:\/\/api.nulldev.org\/aikin.php",
  method: 'POST',
  body: '{\"input\":\"' + txt + '\"}',
  headers: {
    'nulldev-token': nl_token,
    'Content-Type': 'application/json',
  }
};
try{
  request(options, function(error, response, body){
    var jsonraw = JSON.parse(body);
    bot.sendMessage(_id, jsonraw.reply);
    console.log('\nUSER CHAT REPLY: ' + jsonraw.reply + "\n");
  });
}
catch(err){ return; }

Which is not the case anymore. AIKIN is a private Library now used like:

var aikin = require('nulldev-aikin');
var aikin_api = new aikin;
aikin_api.set({ nlkey: nltoken });
aikin.wrap(function(){
  aikin_api.ask(txt, function (callback) {
    bot.sendMessage(_id, callback.message);
    console.log('\nAIKIN REPLY: ' + callback.message + "\n");
    console.log(JSON.stringify(callback));
  });
});

So, If you want to use this telegram client for your own API you need to use the old code from above to connect to your endpoint, replacing https:\/\/api.nulldev.org\/aikin.php with the URI of your API and change the callbacks. Also the Sightbot integration wont work as well since https:\/\/api.nulldev.org\/sight-bot-ai.php is locked down too.


       The Bot in Action       




About

This is the code of the Telegram bot for AIKIN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%