Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

Terryfir/hehehehelan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banner

Goat Bot - Bot Chat Messenger

Nodejs Support v16.xsizecode-versionvisitorssize


📝Note

  • This is a messenger chat bot using a personal account, using anunofficial api (Origin here) and this may lead to facebook account being locked due to spam or other reasons.
  • So, I recommend using a clone account (one that you're willing to throw away at any time)
  • I am not responsible for any problems that may arise from using this bot.

🚧Requirement

📝Tutorial

Tutorial has been uploaded on YouTube

Summary instructions:

💡How it works?

  • The bot uses the unofficial facebook api to send and receive messages from the user.
  • When having anew event (message, reaction, new user join, user leave chat box,...) the bot will emit an event to thehandlerEvents.
  • ThehandlerEvents will handle the event and execute the command:
    • onStart:

      • the handler will check if usercall a command or not.
      • if yes, it will check ifuser banned or modeadmin box only is turned on or not, if not, it will execute the command.
      • next, it will check thepermission of the user.
      • next, it will check if thecountdown of command is over or not.
      • finally, it will execute the command andlog information to the console.
    • onChat:

      • the handler will runwhen the user sends a message.
      • it will checkpermission of the user.
      • the handler willexecute the command, if it return afunction orasync function then it willl checkuser banned or modeadmin box only is turned on or not, if not, it will call the function andlog information to the console.
    • onFirstChat:

      • the handler will runwhen get the first message from the chat box since the bot started.
      • the way it works is likeonChat.
    • onReaction:

      • the handler will run when the userreacts to amessage has messageID is set inGoatBot.onReaction as follows:
        // example:global.GoatBot.onReaction.set(msg.messageID,{messageID:msg.messageID, commandName,// ... and more});
      • the handler will automatically add methoddelete, if this method is called, it will delete the message from the set.
      • next, it will checkpermission of the user andexecute if the user has permission andlog information to the console.
    • onReply:

      • the handler will run when the userreplies to amessage has messageID is set inGoatBot.onReply as follows:
        // example:global.GoatBot.onReply.set(msg.messageID,{messageID:msg.messageID, commandName,// ... and more});
      • the handler will automatically add methoddelete, if this method is called, it will delete the message from the set.
      • next, it will checkpermission of the user andexecute if the user has permission andlog information to the console.
    • onEvent:

      • the handler will runwhen the user has a new event typeevent (new user join, user leave chat box, change admin box,...)
        // example:global.GoatBot.onEvent.set(msg.messageID,{messageID:msg.messageID, commandName,// ... and more});
        • it will loop through allonEvent and get the command determined by the keycommandName and execute theonEvent in that command.
        • if it return afunction orasync function then it will call the function andlog information to the console.
    • handlerEvent:

      • the handler will runwhen the user has a new event typeevent (new user join, user leave chat box, change admin box,...)
      • it will get all the eventCommand set inGoatBot.eventCommands (scripts placed in thescripts/events folder)
      • it will loop through alleventCommands and run theonStart in that command.
      • if it return afunction orasync function then it will call the function andlog information to the console.

🔔How to get notification when have new update?

  • Click on theWatch button in the upper right corner of the screen and selectCustom and selectPull requests andReleases and clickApply to get notified when there is a new update.

🆙How to Update

Tutorial has been uploaded on YouTube

🛠️How to create new commands

💭Support

If you have major coding issues with this bot, please join and ask for help.

📚Support Languages in source code

  • Currently, the bot supports 2 languages:

  • en: English

  • vi: Vietnamese

  • Change language inconfig.json file

  • You can customize the language in the folderlanguages/,languages/cmds/ andlanguages/events/

📌Common Problems

📌 Error 400: redirect_uri_mismatch

1. Enable Google Drive API:Tutorial

2. Add urihttps://developers.google.com/oauthplayground (nothttps://developers.google.com/oauthplayground/) toAuthorized redirect URIs inOAuth consent screen:Tutorial

3. Choosehttps://www.googleapis.com/auth/drive andhttps://mail.google.com/ inOAuth 2.0 Playground:Tutorial

📌 Error for site owners: Invalid domain for site key

1. Go tohttps://www.google.com/recaptcha/admin

2. Add domainrepl.co (notrepl.com) toDomains inreCAPTCHA v2Tutorial

📌 GaxiosError: invalid_grant, unauthorized_client

- If you don't publish the project in google console, the refresh token will expire after 1 week and you need to get it back.Tuatorial

📌 GaxiosError: invalid_client

- Check if you have entered your google project client_id correctlyTuatorial

📌 Error 403: access_denied

- If you don't publish the project in google console only the approved accounts added to the project can use itTuatorial

DO NOT USE THE ORIGINAL UNDERGRADUATE VERSION

  • The use of unknown source code can lead to the device being infected with viruses, malware, hacked social accounts, banks, ...
  • Goat-Bot-V2 is only published athttps://github.com/ntkhang03/Goat-Bot-V2, all other sources, all forks from other github, replit,... are fake, violate policy
  • If you use from other sources (whether accidentally or intentionally) it means that you are in violation and will be banned without notice

📸Screenshots

  • Bot

Rank system
  • Rank card:

  • Rankup notification:

  • Custom rank card:

Weather

Auto send notification when have user join or leave box chat (you can custom message)

Openjourney

GPT

  • Dashboard

Home:

Stats:

Login/Register:

Dashboard Thread:

Custom on/off:

Custom welcome message (similar with leave, rankup (coming soon), custom command (coming soon))

Copyright (C)

📜License

VIETNAMESE

  • Nếu bạn vi phạm bất kỳ quy tắc nào, bạn sẽ bị cấm sử dụng dự án của tôi
  • Không bán mã nguồn của tôi
  • Không tự xưng là chủ sở hữu của mã nguồn của tôi
  • Không kiếm tiền từ mã nguồn của tôi (chẳng hạn như: mua bán lệnh, mua bán/cho thuê bot, kêu gọi quyên góp, v.v.)
  • Không xóa/sửa đổi credit (tên tác giả) trong mã nguồn của tôi

ENGLISH

  • If you violate any rules, you will be banned from using my project
  • Don't sell my source code
  • Don't claim my source code as your own
  • Do not monetize my source code (such as: buy and sell commands, buy and sell bots, call for donations, etc.)
  • Don't remove/edit my credits (author name) in my source code

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS52.2%
  • JavaScript47.8%

[8]ページ先頭

©2009-2025 Movatter.jp