tapnisu / forwarding-discord-telegram

Selfbot that forwards your Discord messages to Telegram
https://github.com/tapnisu/forwarding-discord-telegram
MIT License
24 stars 5 forks source link

Help config #258

Closed iulian12h closed 6 months ago

iulian12h commented 7 months ago

I am not familiar with discord naming scheme, how can i make the bot to read only one channel from only one discord group

Screenshot 2024-02-22 183638
tapnisu commented 7 months ago

Oh, hello. Yes, they are called channels.

So, in config.json file you should add your channel ID to allowedChannelsIds. Your config.json file should like something like this:

{
  "outputChannels": [],
  "mutedGuildsIds": [],
  "allowedGuildsIds": [],
  "mutedChannelsIds": [],
  "allowedChannelsIds": ["1142046665994408036"],
  "allowedUsersIds": [],
  "mutedUsersIds": [],
  "channelConfigs": {},
  "disableLinkPreview": false,
  "imagesAsMedia": true,
  "showDate": true,
  "showChat": true,
  "stackMessages": false
}

Don't forget to use your channel ID

iulian12h commented 7 months ago

A follow up, I am getting this error when i try to build the project

`ubuntu@ip-172-31-38-154:~/forwarding-discord-telegram$ npm run build

forwarding-discord-telegram@2.1.0 build tsc

/home/ubuntu/forwarding-discord-telegram/node_modules/typescript/lib/tsc.js:93 for (let i = startIndex ?? 0; i < array.length; i++) { ^

SyntaxError: Unexpected token '?' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/home/ubuntu/forwarding-discord-telegram/node_modules/typescript/bin/tsc:2:1) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)`

tapnisu commented 6 months ago

Which version of node are you using?

(Forwarding Discord Telegram requires at least version 16)

iulian12h commented 6 months ago

v12.22.9

if wrong version how do i upgrade on ubuntu

iulian12h commented 6 months ago

Ok i have not v20

tapnisu commented 6 months ago

v12.22.9

if wrong version how do i upgrade on ubuntu

You can use NVM

tapnisu commented 6 months ago

Everything worked out?

iulian12h commented 6 months ago

yes