29 Commits
Author SHA1 Message Date
Future bdf4b47e62 fix: add missing package 2026-08-29 11:58:28 +02:00
Future 6829f551f5 fix: try what Claude suggested 2026-08-29 11:51:30 +02:00
Future 4c37d2eed3 fix: remove broken feature. Add new one 2026-08-29 11:35:37 +02:00
Future 6668035306 Merge pull request #13 from alterware/dependabot/github_actions/docker/login-action-4.2.0
chore(deps): bump docker/login-action from 4.1.0 to 4.2.0
2026-08-02 20:48:39 +02:00
Future b52990fef6 Merge pull request #15 from alterware/dependabot/github_actions/docker/build-push-action-7.2.0
chore(deps): bump docker/build-push-action from 7.1.0 to 7.2.0
2026-08-02 20:48:25 +02:00
Future 6127c53bfb Merge pull request #14 from alterware/dependabot/github_actions/docker/setup-buildx-action-4.1.0
chore(deps): bump docker/setup-buildx-action from 4.0.0 to 4.1.0
2026-08-02 20:48:14 +02:00
Future f09adb7dba Merge pull request #12 from alterware/dependabot/github_actions/docker/metadata-action-6.1.0
chore(deps): bump docker/metadata-action from 6.0.0 to 6.1.0
2026-08-02 20:48:06 +02:00
Future d2ba77dc3f Merge pull request #11 from alterware/dependabot/github_actions/docker/setup-qemu-action-4.1.0
chore(deps): bump docker/setup-qemu-action from 4.0.0 to 4.1.0
2026-08-02 20:47:59 +02:00
dependabot[bot] 2ff05f7593 chore(deps): bump docker/build-push-action from 7.1.0 to 7.2.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v7.1.0...v7.2.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-06-01 03:10:36 +00:00
dependabot[bot] 8f8f4c21f7 chore(deps): bump docker/setup-buildx-action from 4.0.0 to 4.1.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-06-01 03:10:34 +00:00
dependabot[bot] 232bcefc8d chore(deps): bump docker/login-action from 4.1.0 to 4.2.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v4.1.0...v4.2.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-06-01 03:10:31 +00:00
dependabot[bot] 7f5c3844db chore(deps): bump docker/metadata-action from 6.0.0 to 6.1.0
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v6.0.0...v6.1.0)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-06-01 03:10:28 +00:00
dependabot[bot] ee66c930ca chore(deps): bump docker/setup-qemu-action from 4.0.0 to 4.1.0
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-06-01 03:10:26 +00:00
Future da39d52de4 Merge pull request #10 from alterware/dependabot/github_actions/docker/build-push-action-7.1.0
chore(deps): bump docker/build-push-action from 7.0.0 to 7.1.0
2026-05-01 10:21:48 +02:00
Future a22f2ca943 Merge pull request #9 from alterware/dependabot/github_actions/docker/login-action-4.1.0
chore(deps): bump docker/login-action from 4.0.0 to 4.1.0
2026-05-01 10:21:41 +02:00
dependabot[bot] de9b11c6d8 chore(deps): bump docker/build-push-action from 7.0.0 to 7.1.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v7.0.0...v7.1.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-05-01 02:00:33 +00:00
dependabot[bot] bf1b41ecbb chore(deps): bump docker/login-action from 4.0.0 to 4.1.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-05-01 02:00:31 +00:00
Future a7e2a1fa3f Merge pull request #5 from alterware/dependabot/github_actions/docker/login-action-4.0.0
chore(deps): bump docker/login-action from 3.7.0 to 4.0.0
2026-04-01 15:22:11 +02:00
Future b1be58f500 Merge pull request #6 from alterware/dependabot/github_actions/docker/setup-buildx-action-4.0.0
chore(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0
2026-04-01 15:22:03 +02:00
Future e1f0b4bcca Merge pull request #7 from alterware/dependabot/github_actions/docker/setup-qemu-action-4.0.0
chore(deps): bump docker/setup-qemu-action from 3.7.0 to 4.0.0
2026-04-01 15:21:53 +02:00
Future 8f30d047a3 Merge pull request #4 from alterware/dependabot/github_actions/docker/build-push-action-7.0.0
chore(deps): bump docker/build-push-action from 6.19.2 to 7.0.0
2026-04-01 15:21:26 +02:00
Future f26a175941 Merge pull request #8 from alterware/dependabot/github_actions/docker/metadata-action-6.0.0
chore(deps): bump docker/metadata-action from 5.10.0 to 6.0.0
2026-04-01 15:21:16 +02:00
dependabot[bot] 8743513fbc chore(deps): bump docker/metadata-action from 5.10.0 to 6.0.0
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.10.0 to 6.0.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v5.10.0...v6.0.0)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-04-01 01:46:25 +00:00
dependabot[bot] b0e252751f chore(deps): bump docker/setup-qemu-action from 3.7.0 to 4.0.0
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3.7.0 to 4.0.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v3.7.0...v4.0.0)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-04-01 01:46:22 +00:00
dependabot[bot] 94beb8e501 chore(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.12.0 to 4.0.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.12.0...v4.0.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-04-01 01:46:19 +00:00
dependabot[bot] 7310d18b5d chore(deps): bump docker/login-action from 3.7.0 to 4.0.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.7.0 to 4.0.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3.7.0...v4.0.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-04-01 01:46:17 +00:00
dependabot[bot] fc42aa4013 chore(deps): bump docker/build-push-action from 6.19.2 to 7.0.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.19.2 to 7.0.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.19.2...v7.0.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-04-01 01:46:13 +00:00
Future 1c8b5bf1c3 Merge pull request #3 from alterware/dependabot/github_actions/docker/build-push-action-6.19.2
chore(deps): bump docker/build-push-action from 6.18.0 to 6.19.2
2026-03-11 14:23:07 +01:00
dependabot[bot] 850cde7c8f chore(deps): bump docker/build-push-action from 6.18.0 to 6.19.2
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.18.0 to 6.19.2.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.18.0...v6.19.2)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 6.19.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-03-01 01:48:19 +00:00
5 changed files with 51 additions and 24 deletions

No files matched your search

+5 -5
View File
@@ -19,19 +19,19 @@ jobs:
lfs: true lfs: true
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3.7.0 uses: docker/setup-qemu-action@v4.1.0
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.12.0 uses: docker/setup-buildx-action@v4.1.0
- name: Log in to DockerHub - name: Log in to DockerHub
uses: docker/login-action@v3.7.0 uses: docker/login-action@v4.2.0
with: with:
username: ${{ secrets.DOCKERHUB_USER }} username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: meta - id: meta
uses: docker/metadata-action@v5.10.0 uses: docker/metadata-action@v6.1.0
with: with:
images: | images: |
alterware/aw-bot alterware/aw-bot
@@ -41,7 +41,7 @@ jobs:
- name: Build and push Docker image - name: Build and push Docker image
id: build-and-push id: build-and-push
uses: docker/build-push-action@v6.18.0 uses: docker/build-push-action@v7.2.0
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
+28
View File
@@ -25,6 +25,11 @@ SPAM_ROLE_ID = 1350511935677927514
ADMIN_ROLE_ID = 1112364483915042908 ADMIN_ROLE_ID = 1112364483915042908
GROK_ROLE_ID = 1362837967919386916 GROK_ROLE_ID = 1362837967919386916
GHOST_CHANNEL_ID = 1145469106133401682
AW_CHANNEL_ID = 1145469136919613551
DEPRECATED_SUPPORT_CHANNELS = [GHOST_CHANNEL_ID, AW_CHANNEL_ID]
deprecated_support_last_response_time = None
ALLOWED_CHANNELS = [ ALLOWED_CHANNELS = [
1112048063448617142, # off-topic 1112048063448617142, # off-topic
1119371841711112314, # vip-channel 1119371841711112314, # vip-channel
@@ -98,6 +103,26 @@ async def handle_at_everyone(message):
return False return False
async def handle_deprecated_support_channel(message):
global deprecated_support_last_response_time
if message.channel.id in DEPRECATED_SUPPORT_CHANNELS:
now = aware_utcnow()
if (
deprecated_support_last_response_time is None
or now - deprecated_support_last_response_time >= timedelta(minutes=10)
):
deprecated_support_last_response_time = now
await message.reply(
"Do not ask for support in this channel because the client is no longer "
"working. See our announcement channel.",
mention_author=True,
)
return True
return False
def fetch_image_from_message(message): def fetch_image_from_message(message):
image_object = None image_object = None
for attachment in message.attachments: for attachment in message.attachments:
@@ -471,6 +496,9 @@ async def handle_message(message, bot):
await is_message_a_duplicate(message) await is_message_a_duplicate(message)
if await handle_deprecated_support_channel(message):
return
if ( if (
"http" in message.content "http" in message.content
and not message.embeds and not message.embeds
+17 -17
View File
@@ -5,30 +5,30 @@ import discord
from bot.log import logger from bot.log import logger
MP3_PATH = "sounds/hello.mp3" MP3_PATH = "sounds/hello.mp3"
_locks: dict[int, asyncio.Lock] = {}
async def handle_voice_state_update(member, before, after, bot): async def handle_voice_state_update(member, before, after, bot):
# Ignore bot users
if member.bot: if member.bot:
return return
# Check if the member joined a new voice channel
if after.channel and (before.channel != after.channel): if after.channel and (before.channel != after.channel):
voice_channel = after.channel voice_channel = after.channel
guild_id = voice_channel.guild.id
lock = _locks.setdefault(guild_id, asyncio.Lock())
try: if lock.locked():
# Join the voice channel return # a connect for this guild is already in flight
vc = await voice_channel.connect()
# Play the MP3 file async with lock:
vc.play(discord.FFmpegPCMAudio(MP3_PATH)) # bail if we're already connected to this guild's voice
if voice_channel.guild.voice_client is not None:
# Wait for playback to finish return
while vc.is_playing(): try:
await asyncio.sleep(1) vc = await voice_channel.connect()
vc.play(discord.FFmpegPCMAudio(MP3_PATH))
# Disconnect while vc.is_playing():
await vc.disconnect() await asyncio.sleep(1)
await vc.disconnect()
except Exception as e: except Exception as e:
logger.error("Error while connecting to a voice channel: %s", e) logger.error("Error while connecting to a voice channel: %s", e)
-2
View File
@@ -18,8 +18,6 @@ SPAM_ROLE_ID = 1350511935677927514
COD_GAMES = { COD_GAMES = {
10180: {"name": "Modern Warfare 2 (2009)", "channel": 1145458108190163014}, 10180: {"name": "Modern Warfare 2 (2009)", "channel": 1145458108190163014},
42680: {"name": "Modern Warfare 3 (2011)", "channel": 1145459504436220014}, 42680: {"name": "Modern Warfare 3 (2011)", "channel": 1145459504436220014},
209160: {"name": "Call of Duty: Ghosts", "channel": 1145469106133401682},
209650: {"name": "Call of Duty: Advanced Warfare", "channel": 1145469136919613551},
311210: {"name": "Call of Duty: Black Ops 3", "channel": 1180796251529293844}, 311210: {"name": "Call of Duty: Black Ops 3", "channel": 1180796251529293844},
} }
+1
View File
@@ -1,5 +1,6 @@
discord.py discord.py
requests requests
davey
audioop-lts audioop-lts
python-dotenv python-dotenv
pynacl pynacl