Blob


1 version=pmwiki-2.2.130 ordered=1 urlencoded=1
2 agent=Mozilla/5.0 (X11; OpenBSD amd64; rv:102.0) Gecko/20100101 Firefox/102.0
3 author=mkf
4 charset=UTF-8
5 csum=some grammer and wiki style fixes.
6 ctime=1646017640
7 host=2.178.136.209
8 name=Openbsd.Lilywhitebot
9 rev=4
10 targets=
11 text=LilyWhiteBot is a open source relay bot that supports IRC, Telegram, Discord and Tencent QQ/WeChat (Needs to be modified according to the WeChat handle)%0a!! Requirements%0a - Node.js 14%0a - Git%0a - Vi support UTF-8%0a%0a!! Installation and configuration%0a[@%0a$ cd ~%0a$ mkdir LilyWhiteBot%0a@]%0a%0aIt will make a dir called LilyWhiteBot (I'm forking it to make it easily to config.) on your home dir.%0a[@%0a$ cd ~/LilyWhiteBot%0a$ git clone https://github.com/fossifer/LilyWhiteBot.git%0a@]%0a%0aAfter you had download, change the bot config.%0a[@%0a$ cd LilyWhiteBot%0a$ vi config.example.yml%0a@]%0a%0a!!! Branch - Telegram Bot API%0aSearch [[https://t.me/Botfather|@BotFather]] on your Telegram APP, send /start before you did it. %0a%0aYou will recevie a message about how to use from BotFather. Send @@/newbot@@ to create a new bot on Telegram.%0a%0a!!! Branch - Discord Bot API%0aVisit [[https://discordapp.com/developers/applications/|Discord Dev]],after, click New Application.(Remember CLIENT ID) %0a%0aClick your New Application, click add bot. Get invite link from OAuth2. %0a%0aIf you have read API guide, please keep token properly.%0a[@%0a$ vi config.example.yml%0a@]%0a%0aAnd Change:%0a[@%0a Telegram:%0a Disable: false%0a%0a IRC:%0a Disable: false%0a@]%0a%0aIt will able Telegram and IRC. Change the following content is taken from the source file:%0a[@%0aIRC:%0a bot:%0a server: irc.libera.chat%0a nick: "SuzerainBot" %0a userName: "SuzerainBot"%0a realName: "SuzerainBot"%0a channels: ["#hi", "#ircnow"] %0a sasl: true %0a sasl_password: "Nickname Passwd"%0a@]%0a%0aIt will set a bot nickname called SuzerainBot running on Libera and will auto join #hi,#ircnow channels use password Nickname Passwd for login.%0a%0aThe configuration methods for Telegram and Discord are also the same, but please be careful '''not''' to configure Telegram Proxy. And '''DO NOT''' change anything of QQ, you can't running true at now.%0a[@%0aExample:%0a Telegram:%0a disabled: false %0a bot:%0a name: "SuzerainBot" %0a token: "123456789:q234fipjfjaewkflASDFASjaslkdf" %0a timeout: 30 %0a limit: 100 %0a%0a Discord:%0a disabled: false %0a bot:%0a token: "AASdjklsfjldf.sdjfh;sajksdfjie.shdfjs"%0a options:%0a nickStyle: nickname %0a useProxyURL: false %0a relayEmoji: false #for save system resources, not forward emoji pictures, only forward the corresponding emoji%0a@]%0a%0a!!! Group Configuration %0aAfter setting the basic information of the robot correctly, we need specify which groups/channels the bot will work in.%0a%0aSearch groups: on config.yml.%0a%0aUsage:%0a[@%0a irc/#Channel%0a telegram/-Group ID%0a discord/Channel ID '''NOT''' Server ID%0a%0aExample:%0a - ['irc/#hi', 'telegram/-12345678']%0a@]%0a%0aIt will enable a bridge from irc channel #hi to a Telegram Group of id is 12345678.%0a%0a!! Running Bot%0awhen you've done all the work, do:%0a[@%0a$ cd ~%0a$ cd ~/LilyWhiteBot/%0a$ mv config.example.yml config.yml%0a$ doas npm install%0a$ doas node main.js%0a@]%0a%0aBy now, it should have started working. Congratulate!
12 time=1674556527
13 author:1674556527=mkf
14 csum:1674556527=some grammer and wiki style fixes.
15 diff:1674556527:1652508122:=1,2c1,4%0a%3c LilyWhiteBot is a open source relay bot that supports IRC, Telegram, Discord and Tencent QQ/WeChat (Needs to be modified according to the WeChat handle)%0a%3c !! Requirements%0a---%0a> !!Why is LilyWhiteBot?%0a> - It's open.%0a> - Support IRC, Telegram, Discord and Tencent QQ/ WeChat (Needs to be modified according to the WeChat handle)%0a> !!Prerequisites%0a7,12c9,12%0a%3c !! Installation and configuration%0a%3c [@%0a%3c $ cd ~%0a%3c $ mkdir LilyWhiteBot%0a%3c @]%0a%3c %0a---%0a> !!Configuration steps%0a> $cd ~%0a> $mkdir LilyWhiteBot%0a> %0a14,18c14,17%0a%3c [@%0a%3c $ cd ~/LilyWhiteBot%0a%3c $ git clone https://github.com/fossifer/LilyWhiteBot.git%0a%3c @]%0a%3c %0a---%0a> %0a> $cd ~/LilyWhiteBot%0a> $git clone https://github.com/fossifer/LilyWhiteBot.git (I'm forking it to make it easily to config.)%0a> %0a20,24c19,22%0a%3c [@%0a%3c $ cd LilyWhiteBot%0a%3c $ vi config.example.yml%0a%3c @]%0a%3c %0a---%0a> %0a> $cd LilyWhiteBot%0a> $vi config.example.yml%0a> %0a26,29c24,27%0a%3c Search [[https://t.me/Botfather|@BotFather]] on your Telegram APP, send /start before you did it. %0a%3c %0a%3c You will recevie a message about how to use from BotFather. Send @@/newbot@@ to create a new bot on Telegram.%0a%3c %0a---%0a> Search @BotFather on your Telegram APP, send /start before you did it. %0a> %0a> You will recevie a message about how to use from BotFather. Send /newbot to create a new bot on Telegram.%0a> %0a35,39c33,36%0a%3c If you have read API guide, please keep token properly.%0a%3c [@%0a%3c $ vi config.example.yml%0a%3c @]%0a%3c %0a---%0a> If you readed the guide of API, please keep properly token.%0a> %0a> $doas vi config.example.yml%0a> %0a41c38%0a%3c [@%0a---%0a> %0a47,48c44%0a%3c @]%0a%3c %0a---%0a> %0a50c46%0a%3c [@%0a---%0a> %0a60,61c56%0a%3c @]%0a%3c %0a---%0a> %0a65c60%0a%3c [@%0a---%0a> %0a83,84c78%0a%3c @]%0a%3c %0a---%0a> %0a91d84%0a%3c [@%0a98,99c91%0a%3c @]%0a%3c %0a---%0a> %0a103,110c95,100%0a%3c when you've done all the work, do:%0a%3c [@%0a%3c $ cd ~%0a%3c $ cd ~/LilyWhiteBot/%0a%3c $ mv config.example.yml config.yml%0a%3c $ doas npm install%0a%3c $ doas node main.js%0a%3c @]%0a---%0a> when you've done all the work, please:%0a> $cd ~%0a> $cd ~/LilyWhiteBot/%0a> $doas mv config.example.yml config.yml%0a> $doas npm install%0a> $doas node main.js%0a
16 host:1674556527=2.178.136.209
17 author:1652508122=suzerain
18 diff:1652508122:1646022704:=73c73%0a%3c token: "AASdjklsfjldf.sdjfh;sajksdfjie.shdfjs"%0a---%0a> token: "ODk0NzYyNDU0NjkxNzc0NDY0.YVuueQ.t9xUJCw_tWs1iv82pCbaht8KFSY"%0a
19 host:1652508122=114.37.176.12
20 author:1646022704=suzerain
21 diff:1646022704:1646017640:=3c3%0a%3c - Support IRC, Telegram, Discord and Tencent QQ/ WeChat (Needs to be modified according to the WeChat handle)%0a---%0a> - Support IRC, Telegram, Discord and Tencent QQ%0a
22 host:1646022704=114.37.148.234
23 author:1646017640=suzerain
24 diff:1646017640:1646017640:=1,102d0%0a%3c !!Why is LilyWhiteBot?%0a%3c - It's open.%0a%3c - Support IRC, Telegram, Discord and Tencent QQ%0a%3c !!Prerequisites%0a%3c - Node.js 14%0a%3c - Git%0a%3c - Vi support UTF-8%0a%3c %0a%3c !!Configuration steps%0a%3c $cd ~%0a%3c $mkdir LilyWhiteBot%0a%3c %0a%3c It will make a dir called LilyWhiteBot (I'm forking it to make it easily to config.) on your home dir.%0a%3c %0a%3c $cd ~/LilyWhiteBot%0a%3c $git clone https://github.com/fossifer/LilyWhiteBot.git (I'm forking it to make it easily to config.)%0a%3c %0a%3c After you had download, change the bot config.%0a%3c %0a%3c $cd LilyWhiteBot%0a%3c $vi config.example.yml%0a%3c %0a%3c !!! Branch - Telegram Bot API%0a%3c Search @BotFather on your Telegram APP, send /start before you did it. %0a%3c %0a%3c You will recevie a message about how to use from BotFather. Send /newbot to create a new bot on Telegram.%0a%3c %0a%3c !!! Branch - Discord Bot API%0a%3c Visit [[https://discordapp.com/developers/applications/|Discord Dev]],after, click New Application.(Remember CLIENT ID) %0a%3c %0a%3c Click your New Application, click add bot. Get invite link from OAuth2. %0a%3c %0a%3c If you readed the guide of API, please keep properly token.%0a%3c %0a%3c $doas vi config.example.yml%0a%3c %0a%3c And Change:%0a%3c %0a%3c Telegram:%0a%3c Disable: false%0a%3c %0a%3c IRC:%0a%3c Disable: false%0a%3c %0a%3c It will able Telegram and IRC. Change the following content is taken from the source file:%0a%3c %0a%3c IRC:%0a%3c bot:%0a%3c server: irc.libera.chat%0a%3c nick: "SuzerainBot" %0a%3c userName: "SuzerainBot"%0a%3c realName: "SuzerainBot"%0a%3c channels: ["#hi", "#ircnow"] %0a%3c sasl: true %0a%3c sasl_password: "Nickname Passwd"%0a%3c %0a%3c It will set a bot nickname called SuzerainBot running on Libera and will auto join #hi,#ircnow channels use password Nickname Passwd for login.%0a%3c %0a%3c The configuration methods for Telegram and Discord are also the same, but please be careful '''not''' to configure Telegram Proxy. And '''DO NOT''' change anything of QQ, you can't running true at now.%0a%3c %0a%3c Example:%0a%3c Telegram:%0a%3c disabled: false %0a%3c bot:%0a%3c name: "SuzerainBot" %0a%3c token: "123456789:q234fipjfjaewkflASDFASjaslkdf" %0a%3c timeout: 30 %0a%3c limit: 100 %0a%3c %0a%3c Discord:%0a%3c disabled: false %0a%3c bot:%0a%3c token: "ODk0NzYyNDU0NjkxNzc0NDY0.YVuueQ.t9xUJCw_tWs1iv82pCbaht8KFSY"%0a%3c options:%0a%3c nickStyle: nickname %0a%3c useProxyURL: false %0a%3c relayEmoji: false #for save system resources, not forward emoji pictures, only forward the corresponding emoji%0a%3c %0a%3c !!! Group Configuration %0a%3c After setting the basic information of the robot correctly, we need specify which groups/channels the bot will work in.%0a%3c %0a%3c Search groups: on config.yml.%0a%3c %0a%3c Usage:%0a%3c irc/#Channel%0a%3c telegram/-Group ID%0a%3c discord/Channel ID '''NOT''' Server ID%0a%3c %0a%3c Example:%0a%3c - ['irc/#hi', 'telegram/-12345678']%0a%3c %0a%3c It will enable a bridge from irc channel #hi to a Telegram Group of id is 12345678.%0a%3c %0a%3c !! Running Bot%0a%3c when you've done all the work, please:%0a%3c $cd ~%0a%3c $cd ~/LilyWhiteBot/%0a%3c $doas mv config.example.yml config.yml%0a%3c $doas npm install%0a%3c $doas node main.js%0a%3c %0a%3c By now, it should have started working. Congratulate!%0a\ No newline at end of file%0a
25 host:1646017640=114.37.148.234