Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python-discord
/
bot
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
763
Star
1.6k
Code
Issues
93
Pull requests
13
Actions
Projects
Security and quality
1
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Implement
!tunnel
command
- #3516
#3516
Open
Matiiss
wants to merge 17 commits into
python-discord:main
python-discord/bot:main
from
Matiiss:matiiss-implement-tunnel-command
Matiiss/python-discord-bot:matiiss-implement-tunnel-command
Copy head branch name to clipboard
Conversation
Commits
17
(17)
Checks
Files changed
Open
Implement
!tunnel
command
#3516
Matiiss
wants to merge 17 commits into
python-discord:main
python-discord/bot:main
from
Matiiss:matiiss-implement-tunnel-command
Matiiss/python-discord-bot:matiiss-implement-tunnel-command
Copy head branch name to clipboard
Commits
Commits on Jun 6, 2026
Initial base implementation for the `!tunnel` command (with default least active off-topic channel selection)
Matiiss
committed
3bf675d
View commit details
Copy full SHA for 3bf675d
Browse repository at this point
Commits on Jul 1, 2026
Move timestamp initialization to cog_load
Matiiss
committed
a9debc2
View commit details
Copy full SHA for a9debc2
Browse repository at this point
remove isinstance assert from the timestamp initializer
Matiiss
committed
672296d
View commit details
Copy full SHA for 672296d
Browse repository at this point
Use fetch_message to get the latest message in a channel as per the channel.last_message docs' suggestion
Show description for 2dc0dd4
Matiiss
committed
2dc0dd4
View commit details
Copy full SHA for 2dc0dd4
Browse repository at this point
use bot.fetch_channel instead of bot.get_channel to avoid a channel missing from the cache on load
Matiiss
committed
0178ca9
View commit details
Copy full SHA for 0178ca9
Browse repository at this point
Get rid of await self.bot.wait_until_guild_available() in cog_load since it doesn't appear to be super necessary here
Matiiss
committed
1622551
View commit details
Copy full SHA for 1622551
Browse repository at this point
Get rid of assertions
Matiiss
committed
0e3c12a
View commit details
Copy full SHA for 0e3c12a
Browse repository at this point
Apply suggestion from @jb3
Show description for ba6850e
Matiiss
and
jb3
authored
ba6850e
View commit details
Copy full SHA for ba6850e
Browse repository at this point
remove unnecessary itemgetter import and use a lambda with [] instead of .get (for typing purposes)
Matiiss
committed
411a1de
View commit details
Copy full SHA for 411a1de
Browse repository at this point
make the tunnel command guild-only
Matiiss
committed
faba64e
View commit details
Copy full SHA for faba64e
Browse repository at this point
Remove source_channel as an argument and set ctx.channel as the current permanent source_channel
Matiiss
committed
55909cd
View commit details
Copy full SHA for 55909cd
Browse repository at this point
Use "continued" instead of "tunneled" for clarity and include the author id (as a ping) in the message as well (to prevent/detect potential abuse)
Matiiss
committed
324332f
View commit details
Copy full SHA for 324332f
Browse repository at this point
Commits on Aug 2, 2026
Switch to using snowflake_time to retreive the time of the last message in a channel (from its id)
Matiiss
committed
762ff58
View commit details
Copy full SHA for 762ff58
Browse repository at this point
formatting
Matiiss
committed
e205b7a
View commit details
Copy full SHA for e205b7a
Browse repository at this point
Delegate the bulk of the work for checking which ot channel has the least recent message to `.last_message_id` and check the timestamp via `discord.utils.snowflake_time`
Matiiss
committed
88cd504
View commit details
Copy full SHA for 88cd504
Browse repository at this point
Some leftover renamings and refactoring from previous commit, now using `self.get_least_active_channel` (instead of `<that>_id`). Also ask for a raw channel string as the argument so we can explici…
Show description for 56bd024
Matiiss
committed
56bd024
View commit details
Copy full SHA for 56bd024
Browse repository at this point
simplify equality comparison
Matiiss
committed
94f918b
View commit details
Copy full SHA for 94f918b
Browse repository at this point
You can’t perform that action at this time.