Giter Club home page Giter Club logo

Comments (16)

ustcltx avatar ustcltx commented on September 9, 2024

I think telegram.stdin.write doesn't work !

from teleirc.

tomcoleman avatar tomcoleman commented on September 9, 2024

same issue - any idea?

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

Sorry, it looks like the telegram-cli client had changed some syntax around. Try pulling the latest teleirc commits and see if it works now. I also had an issue after updating where telegram-cli would refuse to see my group chats, but deleting ~/.telegram-cli and logging in again fixed that issue.

Please make sure that you actually can send messages to Telegram groups when you manually run telegram-cli!

from teleirc.

tomcoleman avatar tomcoleman commented on September 9, 2024

just updated the js file now gives

root@ubuntu:# node teleirc.js
module.js:340
throw err;
^
Error: Cannot find module 'irc'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/root/teleirc.js:5:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
root@ubuntu:
#

On 4 June 2015 at 20:05, Rasmus Eskola [email protected] wrote:

Sorry, it looks like the telegram-cli client had changed some syntax
around. Try pulling the latest teleirc commits and see if it works now. I
also had an issue after updating where telegram-cli would refuse to see my
group chats, but deleting ~/.telegram-cli and logging in again fixed that
issue.

Please make sure that you actually can send messages to Telegram groups
when you manually run telegram-cli!


Reply to this email directly or view it on GitHub
#1 (comment).

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

Run npm install

from teleirc.

tomcoleman avatar tomcoleman commented on September 9, 2024

that gives me

root@ubuntu:~# npm install
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/root/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current
directo ry.

npm ERR! System Linux 3.16.0-38-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /root
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /root/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm ERR! not ok code 0
root@ubuntu:# ls
ibotg-master npm-debug.log teleirc.js tg
LICENSE teleircConfig.js.example teleirc.service
root@ubuntu:
#

On 4 June 2015 at 20:17, Rasmus Eskola [email protected] wrote:

Run npm install


Reply to this email directly or view it on GitHub
#1 (comment).

from teleirc.

tomcoleman avatar tomcoleman commented on September 9, 2024

root@ubuntu:~# apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
npm is already the newest version.
The following packages were automatically installed and are no longer
required:

  • ax25-node libax25 libfile-copy-recursive-perl openbsd-inetd update-inetd*
    Use 'apt-get autoremove' to remove them.
    0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
    root@ubuntu:~# npm install
    npm ERR! install Couldn't read dependencies
    npm ERR! package.json ENOENT, open '/root/package.json'
    npm ERR! package.json This is most likely not a problem with npm itself.
    npm ERR! package.json npm can't find a package.json file in your current
    directory.

npm ERR! System Linux 3.16.0-38-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /root
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /root/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm ERR! not ok code 0
root@ubuntu:~#

On 4 June 2015 at 20:17, Rasmus Eskola [email protected] wrote:

Run npm install


Reply to this email directly or view it on GitHub
#1 (comment).

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

Try the command again inside the repository dir

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

Added this step to README.md as well 👍

from teleirc.

tomcoleman avatar tomcoleman commented on September 9, 2024

Gives me :

root@ubuntu:# ls
ibotg-master LICENSE npm-debug.log teleircConfig.js.example teleirc.js
teleirc.service tg
root@ubuntu:
# cd tg
root@ubuntu:~/tg# npm install
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/root/tg/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current
directory.

npm ERR! System Linux 3.16.0-38-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /root/tg
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /root/tg/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/tg/npm-debug.log
npm ERR! not ok code 0
root@ubuntu:~/tg#

On 4 June 2015 at 20:20, Rasmus Eskola [email protected] wrote:

Try the command again inside the repository dir


Reply to this email directly or view it on GitHub
#1 (comment).

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

No no, not the tg repo but teleirc

from teleirc.

tomcoleman avatar tomcoleman commented on September 9, 2024

sorry bud

Ok loaded and bot is now back in IRC....

On 4 June 2015 at 20:24, Rasmus Eskola [email protected] wrote:

No no, not the tg repo but teleirc


Reply to this email directly or view it on GitHub
#1 (comment).

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

No worries, let's hope it works this time! Thanks for debugging :)

from teleirc.

tomcoleman avatar tomcoleman commented on September 9, 2024

i can see in unix the IRC chats now but nothign going from tg or to tg
now...

On 4 June 2015 at 20:27, Rasmus Eskola [email protected] wrote:

No worries, let's hope it works this time! Thanks for debugging :)


Reply to this email directly or view it on GitHub
#1 (comment).

from teleirc.

tomcoleman avatar tomcoleman commented on September 9, 2024

any idea i can see the node.js reading the items in our IRC window but
nothing is getting announced from IRC > TG or from TG > IRC

root@ubuntu:~/teleirc# node teleirc.js
Connected to IRC server.
Using nickname: myTelegramBot
IRC message: PLEXBOT: hello
IRC message: PLEXBOT: hehe

On 4 June 2015 at 20:27, Rasmus Eskola [email protected] wrote:

No worries, let's hope it works this time! Thanks for debugging :)


Reply to this email directly or view it on GitHub
#1 (comment).

from teleirc.

tomcoleman avatar tomcoleman commented on September 9, 2024

I can do a remote session on my terminal if that helps?

On 4 June 2015 at 20:27, Rasmus Eskola [email protected] wrote:

No worries, let's hope it works this time! Thanks for debugging :)


Reply to this email directly or view it on GitHub
#1 (comment).

from teleirc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.