Closed iulian12h closed 6 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
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.
Which version of node are you using?
(Forwarding Discord Telegram requires at least version 16)
v12.22.9
if wrong version how do i upgrade on ubuntu
Ok i have not v20
Everything worked out?
yes
I am not familiar with discord naming scheme, how can i make the bot to read only one channel from only one discord group