Skip to content

ChristianLW/fnaf3bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

The bot used for AstralSpiff's video in which Twitch chat plays FNaF 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published