oicqã¯ãNode.js ã䜿çšã㊠QQïŒAndroidïŒãããã³ã«ãå®è£
ããQQ å
ã§ãã䜿çšãããæ©èœæäœãæäŸããŸãã
yuan-botã¯ãoicqãåºã«ã㊠TS ã§æžãããMongoDB ãããŒã¿ããŒã¹ãšããŠäœ¿çšãã QQ ãããã§ããçŸåšããããžã§ã¯ãã¯åµèšãããã°ããã§ãQ ã°ã«ãŒãã®ãšãã»ã³ã¹ã¡ãã»ãŒãžã«ã®ã¿å¯Ÿå¿ããŠãããä»åŸã®å
容ã¯åŸã
ã«å
å®ããŠãããŸãã
GitHub ã¢ãã¬ã¹ïŒyuan-bot
ãã®èšäºã¯ããã®ãããžã§ã¯ãã®éå ¬åŒãªéçºæ¥èªã®çµéèšé²ã§ãã
èæ¯#
ç§ã® QQ ã«ã¯ãç§ãé«æ ¡ã倧åŠã®æã«å£äžããã¬ã€ããŠããã²ãŒã ã°ã«ãŒãããããŸãã
ã¡ã³ããŒå
šå¡ãäžæã«éã³ã話ãããšãã§ããŸããããããã®èšèãèšæ¶ããããã«ãç§ãã¡ã¯ QQ ã®ãšãã»ã³ã¹ã¡ãã»ãŒãžæ©èœã掻çšãããã¹ãŠã® ãããã¹ã ã¯ã©ã·ãã¯ãªåèšããã®ãšãã»ã³ã¹ã¡ãã»ãŒãžãªã¹ãã«é£ŸããŸããã
ãã®æç¹ã§ããšãã»ã³ã¹ã¡ãã»ãŒãžã®å
容ã¯ãã¯ããšãã»ã³ã¹ã§ã¯ãªããç§ãã¡ã¯é»ã£ãŠããããç³ç²ïŒããïŒããšåŒãã§ããŸã
ç§ãã¡ããªã¹ãã«é£Ÿã£ãã¡ã³ããŒã¯ãèŠæ
ãèšã£ãŠããŸãïŒãã¡ããã楜ããã§ãã人ãããŸãããç§ã¯èšããŸãããã¿ããªãããã£ãŠããŸãïŒã
ããããéã¯é«ããæªã¯é«ããåå£ãªã°ã«ãŒã管çè
ã¯ã¡ã³ããŒã®èŠæ
ãç¡èŠããããã«ã¯ 8 åšå¹Žèšå¿µæ¥ã«ç³ç²ã®åšèŸºååãçºå£²ããç³ç²ã®æ°ãæãå€ãã¡ã³ããŒã«ãããã£ãŒãæäžãããªã©ãç³ç²æåãæšé²ããŠããŸããã¡ã³ããŒã®å¿ã¯ä¹±ããå察ã®å£°ã次第ã«æ¶ããã¿ããªãç¬ãè
ã«ãªã£ãŠããŸãã
ãããŸã§ãç³ç²æåã¯ã°ã«ãŒãã®èšç«ä»¥æ¥ã®ãã€ã©ã€ãã«éããŸããã
ç³ç²æåãåºãŸãã«ã€ããç³ç²ã®æ°ãå¢ãç¶ããã°ã«ãŒã管çè ã¯ããã€ãã®åé¡ã«æ°ä»ããŸããã
- ç³ç²ã®æ°ãæ倧㧠1000 ã«éããè¿œå ããããã«äžéšã®ç³ç²ã¡ãã»ãŒãžãåé€ããå¿ èŠããããŸããããã«ãããäžéšã®ã°ã«ãŒãã®æŽå²çãªç³ç²ã倱ãããŸãã
- ãã®ãããªèšå€§ãªæ°ã®äžã§ãQQ ã°ã«ãŒãã®ãšãã»ã³ã¹ã¡ãã»ãŒãžã¯çµ±èšãæéã§ã®è¡šç€ºãªã©ã®æ©èœããªããæ¯åæåã§çµ±èšããå¿ èŠããããŸãã
- ......
Yuan-Bot ã¯ãäžèšã®åé¡ã解決ããããã«çãŸããŸããã
èµ·å#
git clone https://github.com/Magren0321/yuan-bot.git
pnpm install
pnpm run serve
éçš#
ããã³ããšã³ããšã³ãžãã¢ãšããŠãæè¡ã®éžæã¯èªç¶ãš Node.js ã«ãªããŸãããoicqãšããã©ã€ãã©ãªãèŠã€ããŸããããã㯠Node.js ãããŒã¹ã«ãã Android QQ ã§ãæ©èœãæ¯èŒçå å®ããŠãããšæããŸãããå ·äœçãªäœ¿çšæ¹æ³ã¯ãç§ã®èª¬æãããApi referenceãåç §ããŠãã ããã
ãšãã»ã³ã¹ããŒã¿#
oicq èªäœãã°ã«ãŒããªããžã§ã¯ãã«ãšãã»ã³ã¹ããŒã¿ãã«ãã»ã«åããŠããªãããïŒãããããŸã ãã®æ©èœãå®è£
ããŠããªããªãŒãã³ãœãŒã¹ã®ã©ã€ãã©ãªããããããããŸããïŒãèªåã§æãåããå¿
èŠããããŸããã
Fiddler 㧠PC ç QQ ããã£ããã£ãããšãã»ã³ã¹ããŒã¿ã® API ããã£ããã£ããŸããããããŠãoicq ãæäŸãããã°ã€ã³ API ã䜿çšã㊠Cookie ãååŸãããªã¯ãšã¹ãããããŒã«è¿œå ããŠãšãã»ã³ã¹ã¡ãã»ãŒãžã®ããŒã¿ãååŸããŸããã
ã€ãã§ã« oicq ã« PR ãæåºããŸããïŒãŸã PR ãæ°Žå¢ãããŸããïŒ
ãããŠãããã«åé¡ãçºçããŸãããã°ã«ãŒãã«æ°ãããšãã»ã³ã¹ã¡ãã»ãŒãžãè¿œå ãããå Žåãoicq ã§ã¯ã°ã«ãŒãã® tips ããªãã¹ã³ã§ããªãããšã«æ°ä»ããŸãããæšå¹Ž 8 æã«ãã§ã«èª°ããåé¡ãæèµ·ããŠããŸããããŸã 解決ãããŠããªãããã§ãã
å
ã
ã®èšç»ã¯ããšãã»ã³ã¹ã¡ãã»ãŒãžãè¿œå ãããåŸããµãŒããŒã®ããŒã¿ããŒã¹ã«ãªã¢ã«ã¿ã€ã ã§æ°ãããšãã»ã³ã¹ã¡ãã»ãŒãžãä¿åããããšã§ããããçŸåšã¯å¥ã®æ¹æ³ã«å€æŽããå®æçãªã¿ã€ããŒã«å€æŽããŸãããäžå®ã®æéããšã«ããŒã¿ããªã¯ãšã¹ãããææ°ã¡ãã»ãŒãžã®ã¿ã€ã ã¹ã¿ã³ããèšé²ããå€ãã³ã³ãã³ãããã£ã«ã¿ãªã³ã°ããããã«ããŸããã
ãã®æ¹æ³ã¯ç§ã«ãšã£ãŠã¯æããªæ¹æ³ã ãšæããŸãããçŸç¶ã§ã¯ãã®æ©èœãå®çŸããä»ã®æ¹æ³ãæãã€ããŸããã
ã³ãã³ã#
ããã¯æ¯èŒçç°¡åã«è§£æ±ºã§ããŸããæå®ãããã°ã«ãŒãã®ã¡ãã»ãŒãžããªãã¹ã³ããã¯ã©ã¹ãã©ããããŠãæååãã¯ã©ã¹ã®ããŒãšãã察å¿ããã¡ãœãããå€ãšããŠãã¡ãã»ãŒãžãåãåã£ããããŒãæž¡ããŠå¯Ÿå¿ããã¡ãœãããå®è¡ããã ãã§ãã
倧ãŸããªå®è£ ã¯ãããªæãã§ãç¹ã«ç®ç«ã€ç¹ã¯ãããŸããð€¡
æåŸïŒãŸã æåŸã§ã¯ãªããããããŸããïŒ#
yuan-bot ã®æ©èœã¯ä»åŸãå
å®ããæ¹åãããäºå®ã§ãïŒãã ããçŸåšã¯ä»äºããããããé²æã¯é
ããªããããããŸããïŒ
ðoicqãæäŸããã€ã³ã¿ãŒãã§ãŒã¹ãšããã¥ã¡ã³ãã«æè¬ããŸãã
ðžPower by Magren and made with love
To Be Continued.