Files
2026-07-11 22:08:04 +03:00

20 lines
743 B
Python

import wavelink
from collections import deque
from .constants import LOOP_OFF
class GuildState:
def __init__(self):
self.queue: deque = deque()
self.history: list = [] # last 10 tracks
self.loop: int = LOOP_OFF
self.autoplay: bool = False
self.current: wavelink.Playable | None = None
self.mode: str | None = None
self.suppress_np: bool = False # skip auto now-playing embed (set by !play)
def push_history(self, track: wavelink.Playable):
self.history.insert(0, track)
if len(self.history) > 10:
self.history.pop()