version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0 author=suzerain charset=UTF-8 csum= ctime=1646017640 host=114.37.176.12 name=Lilywhitebot.Install rev=3 targets= text=!!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%0a - Node.js 14%0a - Git%0a - Vi support UTF-8%0a%0a!!Configuration steps%0a $cd ~%0a $mkdir LilyWhiteBot%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 (I'm forking it to make it easily to config.)%0a%0aAfter you had download, change the bot config.%0a %0a $cd LilyWhiteBot%0a $vi config.example.yml%0a%0a!!! Branch - Telegram Bot API%0aSearch @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 readed the guide of API, please keep properly token.%0a%0a $doas vi config.example.yml%0a%0aAnd Change:%0a%0a Telegram:%0a Disable: false%0a%0a IRC:%0a Disable: false%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%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!!! 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 irc/#Channel%0a telegram/-Group ID%0a discord/Channel ID '''NOT''' Server ID%0a%0aExample:%0a - ['irc/#hi', 'telegram/-12345678']%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, please:%0a $cd ~%0a $cd ~/LilyWhiteBot/%0a $doas mv config.example.yml config.yml%0a $doas npm install%0a $doas node main.js%0a%0aBy now, it should have started working. Congratulate! time=1652508122 author:1652508122=suzerain diff:1652508122:1646022704:=73c73%0a%3c token: "AASdjklsfjldf.sdjfh;sajksdfjie.shdfjs"%0a---%0a> token: "ODk0NzYyNDU0NjkxNzc0NDY0.YVuueQ.t9xUJCw_tWs1iv82pCbaht8KFSY"%0a host:1652508122=114.37.176.12 author:1646022704=suzerain 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 host:1646022704=114.37.148.234 author:1646017640=suzerain 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 host:1646017640=114.37.148.234