feat(statusrotator): change the statuses
This commit is contained in:
17
.gitignore
vendored
Normal file
17
.gitignore
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
.venv/
|
||||||
|
venv/
|
||||||
|
env/
|
||||||
|
|
||||||
|
# Tool caches
|
||||||
|
.mypy_cache/
|
||||||
|
.pytest_cache/
|
||||||
|
.ruff_cache/
|
||||||
|
|
||||||
|
# IDE / OS noise
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Runtime artifacts
|
||||||
|
*.log
|
||||||
22
README.md
22
README.md
@@ -7,17 +7,32 @@ Cog for Red-DiscordBot that rotates the bot's playing status in a simple timed l
|
|||||||
- Sets the bot activity to:
|
- Sets the bot activity to:
|
||||||
- `❓ Prefix: .help` for 60 seconds
|
- `❓ Prefix: .help` for 60 seconds
|
||||||
- Then changes it to:
|
- Then changes it to:
|
||||||
|
<<<<<<< HEAD
|
||||||
- `💻 I support 100+ commands` for 30 seconds
|
- `💻 I support 100+ commands` for 30 seconds
|
||||||
- Repeats this cycle forever in a loop
|
- Repeats this cycle forever in a loop
|
||||||
- Uses only `Playing` activity for both statuses
|
- Uses only `Playing` activity for both statuses
|
||||||
|
=======
|
||||||
|
- `🌐 nexa.zvcloud.net` for 60 seconds
|
||||||
|
- Then changes it to:
|
||||||
|
- `💻 I support 850+ commands` for 30 seconds
|
||||||
|
- Repeats this cycle forever in a loop
|
||||||
|
- Uses only `Playing` activity for all statuses
|
||||||
|
- Sets the bot status to `Do Not Disturb`
|
||||||
|
>>>>>>> a9c6c65 (feat(statusrotator): change the statuses)
|
||||||
|
|
||||||
## Rotation order
|
## Rotation order
|
||||||
|
|
||||||
The status loop works like this:
|
The status loop works like this:
|
||||||
|
|
||||||
1. `❓ Prefix: .help` for 60 seconds
|
1. `❓ Prefix: .help` for 60 seconds
|
||||||
|
<<<<<<< HEAD
|
||||||
2. `💻 I support 100+ commands` for 30 seconds
|
2. `💻 I support 100+ commands` for 30 seconds
|
||||||
3. Repeat from the beginning
|
3. Repeat from the beginning
|
||||||
|
=======
|
||||||
|
2. `🌐 nexa.zvcloud.net` for 60 seconds
|
||||||
|
3. `💻 I support 850+ commands` for 30 seconds
|
||||||
|
4. Repeat from the beginning
|
||||||
|
>>>>>>> a9c6c65 (feat(statusrotator): change the statuses)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -25,4 +40,9 @@ The status loop works like this:
|
|||||||
2. In Discord:
|
2. In Discord:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
[p]load statusrotator
|
<<<<<<< HEAD
|
||||||
|
[p]load statusrotator
|
||||||
|
=======
|
||||||
|
[p]load statusrotator
|
||||||
|
```
|
||||||
|
>>>>>>> a9c6c65 (feat(statusrotator): change the statuses)
|
||||||
|
|||||||
@@ -2,4 +2,8 @@ from .statusrotator import StatusRotator
|
|||||||
|
|
||||||
|
|
||||||
async def setup(bot):
|
async def setup(bot):
|
||||||
await bot.add_cog(StatusRotator(bot))
|
<<<<<<< HEAD
|
||||||
|
await bot.add_cog(StatusRotator(bot))
|
||||||
|
=======
|
||||||
|
await bot.add_cog(StatusRotator(bot))
|
||||||
|
>>>>>>> a9c6c65 (feat(statusrotator): change the statuses)
|
||||||
|
|||||||
@@ -26,11 +26,28 @@ class StatusRotator(commands.Cog):
|
|||||||
|
|
||||||
while not self.bot.is_closed():
|
while not self.bot.is_closed():
|
||||||
await self.bot.change_presence(
|
await self.bot.change_presence(
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
status=discord.Status.dnd,
|
||||||
|
>>>>>>> a9c6c65 (feat(statusrotator): change the statuses)
|
||||||
activity=discord.Game(name="❓ Prefix: .help")
|
activity=discord.Game(name="❓ Prefix: .help")
|
||||||
)
|
)
|
||||||
await asyncio.sleep(60)
|
await asyncio.sleep(60)
|
||||||
|
|
||||||
await self.bot.change_presence(
|
await self.bot.change_presence(
|
||||||
|
<<<<<<< HEAD
|
||||||
activity=discord.Game(name="💻 I support 100+ commands")
|
activity=discord.Game(name="💻 I support 100+ commands")
|
||||||
)
|
)
|
||||||
await asyncio.sleep(30)
|
await asyncio.sleep(30)
|
||||||
|
=======
|
||||||
|
status=discord.Status.dnd,
|
||||||
|
activity=discord.Game(name="🌐 nexa.zvcloud.net")
|
||||||
|
)
|
||||||
|
await asyncio.sleep(60)
|
||||||
|
|
||||||
|
await self.bot.change_presence(
|
||||||
|
status=discord.Status.dnd,
|
||||||
|
activity=discord.Game(name="💻 I support 1200+ commands")
|
||||||
|
)
|
||||||
|
await asyncio.sleep(30)
|
||||||
|
>>>>>>> a9c6c65 (feat(statusrotator): change the statuses)
|
||||||
|
|||||||
Reference in New Issue
Block a user