Skip to content

Commit

Permalink
Update 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Adivise committed Dec 8, 2022
1 parent 691128d commit f7ad023
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&height=200&section=header&text=SpaceTime&fontSize=80&fontAlignY=35&animation=twinkling&fontColor=gradient"/> </a>
<img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&height=200&section=header&text=SpaceHost&fontSize=80&fontAlignY=35&animation=twinkling&fontColor=gradient"/> </a>
</p>

<p align="center">
Expand All @@ -11,7 +11,7 @@
</p>

## 🚨 Warning
- this bot is still in development (not fully test), so there will be bugs and errors. If you find any, please report them in the [issues](https://github.com/Adivise/SpaceTime/issues)
- this bot is still in development (not fully test), so there will be bugs and errors. If you find any, please report them in the [issues](https://github.com/Adivise/SpaceHost/issues)

## 📑 Feature
- [x] 3 in 1 (Rotate, Map, and Team)
Expand All @@ -29,8 +29,8 @@
## 📚 Installation

```
git clone https://github.com/Adivise/SpaceTime
cd SpaceTime
git clone https://github.com/Adivise/SpaceHost
cd SpaceHost
npm install
```

Expand Down Expand Up @@ -121,6 +121,6 @@ After installation or finishes all you can use `npm run rotate, map, versus` to

## ❣ Contributors

<a href="https://github.com/Adivise/SpaceTime/graphs/contributors">
<img src="https://contributors-img.web.app/image?repo=Adivise/SpaceTime" />
<a href="https://github.com/Adivise/SpaceHost/graphs/contributors">
<img src="https://contributors-img.web.app/image?repo=Adivise/SpaceHost" />
</a>
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "spacetime",
"name": "spacehost",
"version": "1.0.1",
"description": "osu bot auto rotate, auto map, auto team",
"main": "./servers/AutoHost.js",
Expand All @@ -18,10 +18,10 @@
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/Adivise/SpaceTime.git"
"url": "git+https://github.com/Adivise/SpaceHost.git"
},
"bugs": {
"url": "https://github.com/Adivise/SpaceTime/issues"
"url": "https://github.com/Adivise/SpaceHost/issues"
},
"homepage": "https://github.com/Adivise/SpaceTime/#readme"
"homepage": "https://github.com/Adivise/SpaceHost/#readme"
}
6 changes: 3 additions & 3 deletions servers/AutoHost.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ client.connect().then(async () => {

await checkRules(beatmap);

channel.sendMessage(`*Details* | [https://osu.ppy.sh//beatmapsets/${beatmap[0].beatmapset_id}#/${beatmap[0].beatmap_id} ${beatmap[0].artist} - ${beatmap[0].title}] | AR: ${beatmap[0].diff_approach} | CS: ${beatmap[0].diff_size} | OD: ${beatmap[0].diff_overall} | HP: ${beatmap[0].diff_drain} | Star Rating: ${parseInt(beatmap[0].difficultyrating).toFixed(2)} ★ | Bpm: ${beatmap[0].bpm} | Length: ${convertSeconds(beatmap[0].total_length)}`);
channel.sendMessage(`*Details* | [https://osu.ppy.sh/beatmapsets/${beatmap[0].beatmapset_id}#/${beatmap[0].beatmap_id} ${beatmap[0].artist} - ${beatmap[0].title}] | AR: ${beatmap[0].diff_approach} | CS: ${beatmap[0].diff_size} | OD: ${beatmap[0].diff_overall} | HP: ${beatmap[0].diff_drain} | Star Rating: ${parseInt(beatmap[0].difficultyrating).toFixed(2)} ★ | Bpm: ${beatmap[0].bpm} | Length: ${convertSeconds(beatmap[0].total_length)}`);
channel.sendMessage(`*Mirror* | [https://beatconnect.io/b/${beatmap[0].beatmapset_id} BeatConnect] | [https://dl.sayobot.cn/beatmaps/download/novideo/${beatmap[0].beatmapset_id} Sayobot] | [https://api.chimu.moe/v1/download/${beatmap[0].beatmapset_id}?n=1 Chimu]`);

});
Expand Down Expand Up @@ -114,9 +114,9 @@ client.connect().then(async () => {

channel.sendMessage(`*Rules* | Star Rating: ${Rotator.min_star}* - ${Rotator.max_star}* | Length: ${convertSeconds(Rotator.min_length)} - ${convertSeconds(Rotator.max_length)} | Mode: ${mode} | Mods: ${Rotator.mods.join(", ")} | FreeMod: ${Rotator.freemod ? "Allowed" : "Not Allowed"}`);
} else if (command === "info") {
channel.sendMessage(`*Info* | Powered by [https://github.com/ThePooN/bancho.js Bancho.js] | Developer by [https://osu.ppy.sh/users/21216709 Suntury] | Source Code: [https://github.com/Adivise/SpaceTime SpaceTime]`);
channel.sendMessage(`*Info* | Powered by [https://github.com/ThePooN/bancho.js Bancho.js] | Developer by [https://osu.ppy.sh/users/21216709 Suntury] | Source Code: [https://github.com/Adivise/SpaceHost SpaceHost]`);
} else if (command === "help") {
channel.sendMessage(`*Commands* | [https://github.com/Adivise/SpaceTime#-auto-host-mode Commands]`);
channel.sendMessage(`*Commands* | [https://github.com/Adivise/SpaceHost#-auto-host-mode Commands]`);
}
});

Expand Down
6 changes: 3 additions & 3 deletions servers/AutoMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ client.connect().then(async () => {
if (beatmap.length == 0) return await getBeatmap();
if (beatmap[0].mode != AutoMap.mode) return await getBeatmap();

channel.sendMessage(`*Details* | [https://osu.ppy.sh//beatmapsets/${beatmap[0].beatmapset_id}#/${beatmap[0].beatmap_id} ${beatmap[0].artist} - ${beatmap[0].title}] | AR: ${beatmap[0].diff_approach} | CS: ${beatmap[0].diff_size} | OD: ${beatmap[0].diff_overall} | HP: ${beatmap[0].diff_drain} | Star Rating: ${parseInt(beatmap[0].difficultyrating).toFixed(2)} ★ | Bpm: ${beatmap[0].bpm} | Length: ${convertSeconds(beatmap[0].total_length)}`);
channel.sendMessage(`*Details* | [https://osu.ppy.sh/beatmapsets/${beatmap[0].beatmapset_id}#/${beatmap[0].beatmap_id} ${beatmap[0].artist} - ${beatmap[0].title}] | AR: ${beatmap[0].diff_approach} | CS: ${beatmap[0].diff_size} | OD: ${beatmap[0].diff_overall} | HP: ${beatmap[0].diff_drain} | Star Rating: ${parseInt(beatmap[0].difficultyrating).toFixed(2)} ★ | Bpm: ${beatmap[0].bpm} | Length: ${convertSeconds(beatmap[0].total_length)}`);
channel.sendMessage(`*Mirror* | [https://beatconnect.io/b/${beatmap[0].beatmapset_id} BeatConnect] | [https://dl.sayobot.cn/beatmaps/download/novideo/${beatmap[0].beatmapset_id} Sayobot] | [https://api.chimu.moe/v1/download/${beatmap[0].beatmapset_id}?n=1 Chimu]`);

});
Expand Down Expand Up @@ -123,9 +123,9 @@ client.connect().then(async () => {

channel.sendMessage(`*Rules* | Star Rating: ${AutoMap.min_star}* - ${AutoMap.max_star}* | Mode: ${mode} | Mods: ${AutoMap.mods.join(", ")} | FreeMod: ${AutoMap.freemod ? "Allowed" : "Not Allowed"}`);
} else if (command === "info") {
channel.sendMessage(`*Info* | Powered by [https://github.com/ThePooN/bancho.js Bancho.js] | Developer by [https://osu.ppy.sh/users/21216709 Suntury] | Source Code: [https://github.com/Adivise/SpaceTime SpaceTime]`);
channel.sendMessage(`*Info* | Powered by [https://github.com/ThePooN/bancho.js Bancho.js] | Developer by [https://osu.ppy.sh/users/21216709 Suntury] | Source Code: [https://github.com/Adivise/SpaceHost SpaceHost]`);
} else if (command === "help") {
channel.sendMessage(`*Commands* | [https://github.com/Adivise/SpaceTime#-auto-map-mode Commands]`);
channel.sendMessage(`*Commands* | [https://github.com/Adivise/SpaceHost#-auto-map-mode Commands]`);
}
});

Expand Down
6 changes: 3 additions & 3 deletions servers/AutoTeam.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ client.connect().then(async () => {
if (beatmap.length == 0) return await getBeatmap();
if (beatmap[0].mode != AutoTeam.mode) return await getBeatmap();

channel.sendMessage(`*Details* | [https://osu.ppy.sh//beatmapsets/${beatmap[0].beatmapset_id}#/${beatmap[0].beatmap_id} ${beatmap[0].artist} - ${beatmap[0].title}] | AR: ${beatmap[0].diff_approach} | CS: ${beatmap[0].diff_size} | OD: ${beatmap[0].diff_overall} | HP: ${beatmap[0].diff_drain} | Star Rating: ${parseInt(beatmap[0].difficultyrating).toFixed(2)} ★ | Bpm: ${beatmap[0].bpm} | Length: ${convertSeconds(beatmap[0].total_length)}`);
channel.sendMessage(`*Details* | [https://osu.ppy.sh/beatmapsets/${beatmap[0].beatmapset_id}#/${beatmap[0].beatmap_id} ${beatmap[0].artist} - ${beatmap[0].title}] | AR: ${beatmap[0].diff_approach} | CS: ${beatmap[0].diff_size} | OD: ${beatmap[0].diff_overall} | HP: ${beatmap[0].diff_drain} | Star Rating: ${parseInt(beatmap[0].difficultyrating).toFixed(2)} ★ | Bpm: ${beatmap[0].bpm} | Length: ${convertSeconds(beatmap[0].total_length)}`);
channel.sendMessage(`*Mirror* | [https://beatconnect.io/b/${beatmap[0].beatmapset_id} BeatConnect] | [https://dl.sayobot.cn/beatmaps/download/novideo/${beatmap[0].beatmapset_id} Sayobot] | [https://api.chimu.moe/v1/download/${beatmap[0].beatmapset_id}?n=1 Chimu]`);

});
Expand Down Expand Up @@ -126,9 +126,9 @@ client.connect().then(async () => {

channel.sendMessage(`*Rules* | Star Rating: ${AutoTeam.min_star}* - ${AutoTeam.max_star}* | Mode: ${mode} | Mods: ${AutoTeam.mods.join(", ")} | FreeMod: ${AutoTeam.freemod ? "Allowed" : "Not Allowed"}`);
} else if (command === "info") {
channel.sendMessage(`*Info* | Powered by [https://github.com/ThePooN/bancho.js Bancho.js] | Developer by [https://osu.ppy.sh/users/21216709 Suntury] | Source Code: [https://github.com/Adivise/SpaceTime SpaceTime]`);
channel.sendMessage(`*Info* | Powered by [https://github.com/ThePooN/bancho.js Bancho.js] | Developer by [https://osu.ppy.sh/users/21216709 Suntury] | Source Code: [https://github.com/Adivise/SpaceHost SpaceHost]`);
} else if (command === "help") {
channel.sendMessage(`*Commands* | [https://github.com/Adivise/SpaceTime#-auto-team-mode Commands]`);
channel.sendMessage(`*Commands* | [https://github.com/Adivise/SpaceHost#-auto-team-mode Commands]`);
}
});

Expand Down

0 comments on commit f7ad023

Please sign in to comment.