Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed Jan 27, 2022
2 parents 21b91ac + 5f4010f commit b9a4524
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Windows]
- Version [e.g. 2.1]

**Additional context**
Add any other context about the problem here.
9 changes: 6 additions & 3 deletions FNFBot20/Bot/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,16 @@ public void HandleNote(FNFSong.FNFNote n)
if (shouldHold)
holdTimes[(int)n.Type % 4] = ((float)n.Length + (float)watch.Elapsed.TotalMilliseconds) + 10;


switch (n.Type)
{
case FNFSong.NoteType.Left:
case FNFSong.NoteType.RLeft:
if (shouldHold)
{
simulator.Keyboard.KeyDown(VirtualKeyCode.LEFT);

Thread.Sleep(Convert.ToInt32(n.Length));
simulator.Keyboard.KeyUp(VirtualKeyCode.LEFT);
}
else
{
Expand Down Expand Up @@ -254,9 +256,10 @@ public void HandleNote(FNFSong.FNFNote n)
else
kBot.KeyPress(0x27, 0x20);


break;
}
}
notesPlayed++;
}
}
}
}
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# FNFBot Rewrite
## The better version of FNFBot

### WARNING!

If FNFBot doesn't hit notes perfectly, don't worry, as it doesn't know where to start automatically. You have to press F1 at the right time. So don't create issues telling us that it "hits notes early" or whatever.

### What is FNFBot?

FNFBot is a bot program that lets users automatically play Friday Night Funkin' charts.
Expand Down

0 comments on commit b9a4524

Please sign in to comment.