Skip to content

Commit

Permalink
Fixed "owo undefined" and quote error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyou-Izumi committed Sep 5, 2023
1 parent f04a282 commit 88236d3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "discord-owo-selfbot",
"version": "2.2.1",
"version": "2.2.2",
"description": "Ain't the best OwO Tool Farm, but worth a try (why not?)",
"type": "module",
"engines": {
"node": ">=16"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"setup": "npm install",
"start": "ts-node ."
},
"repository": {
Expand Down
13 changes: 13 additions & 0 deletions run.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@echo off

echo Installing dependencies...
call npm i
IF %ERRORLEVEL% NEQ 0 (
echo Failed to install dependencies.
exit /b 1
)

echo Starting index.ts...
npm run start

pause
4 changes: 2 additions & 2 deletions src/SelfbotWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const aSleep = async () => {
}

const aOther = async () => {
const cmd = other[ranInt(0, ranInt.length)]
const cmd = other[ranInt(0, other.length)]
await send(cmd)
const filter = (m:Message<boolean>) => m.author.id == global.owoID && (m.content.startsWith("🚫 **|** ") || m.content.startsWith(":no_entry_sign: **|** "))
const collector = global.channel.createMessageCollector({filter, max: 1, time: 10_000})
Expand All @@ -74,7 +74,7 @@ const aQuote = async () => {
switch (ranInt(0, 3)) {
case 1:
case 2:
const quote = quotes[quotes.length]
const quote = quotes[ranInt(0, quotes.length)]
if(quote) {
await send(quote, "quote")
break;
Expand Down

0 comments on commit 88236d3

Please sign in to comment.