Git Product home page Git Product logo

fnaf3bot's Introduction

Twitch Plays FNaF 3 Bot

This bot was originally made for the amazing AstralSpiff. Then stream in which it was used has been turned into a video, which you can see here. You can also see the VOD of the stream here.

The bot goes through a cycle of first waiting for a specific amount of time, where it will tally up commands sent by Twitch chat. After a specific amount of time, the bot looks at the total and picks the highest voted command, which it then executes.

The bot is made in a fairly modular fassion that means it would be quite easy to modify it for a different game. Almost all game-specific code is in commands.js, with a tiny bit in ui.js (toggling the !boop command) and the title of the window in main.js. There is also ahk.ahk which handles global hotkeys as well as checking when reboots finish.

Feel free to look around in the code and take inspiration, but please message me first if you're going to base something heavily off this.

Platform Limitations

  • The bot only works on Windows. Most of the code would work fine on any OS, but a few things needed only work on Windows.
  • The bot assumes a 1080p (1920×1080) screen resolution. If you have another screen resolution and want to use the bot, throw me a DM on Discord (see the bottom of this page).

Known Issues

  • There is a visual glitch where it looks like the wrong thing is being rebooted. This is purely visual and the proper system is actually being rebooted.
  • Phantoms tend to break/confuse the bot. Both Spiff and I completely forgot they existed until the bot actually got used.
  • If you reboot the camera or audio system while a ventilation error is occuring, the bot will break. This is due to the way the bot detects when reboots have finished.

I want to use the bot

If you want to use the bot, you can absolutely do that as long as you credit me. For YouTube videos, a simple credit in the description (and in the video if you want) is fine. For livestreams, just saying in the beginning who made it is fine.

Note for below: When you reach this page, leave the box unchecked!

nodejs_install

In order to actually run the bot, you'll need three bits of software:

Then follow the steps:

  1. Download the bot from this page (click the green “Code” button and then “Download ZIP”).
  2. Extract the zip file into a folder anywhere on your computer.
  3. Shift-right-click the folder and click “Open PowerShell window here”.
  4. Type npm install and wait for it to finish.
  5. Open up “main.js” in Notepad or any text editor
  6. Look for const channel = "astralspiff"; and change astralspiff to your Twitch channel ID.
  7. Save the file and you should be able to run the bot by running the shortcut called “RUN”.

If you have any questions, feel free to DM me on Discord (username is bebeu).

fnaf3bot's People

Contributors

christianlw avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.