Try   HackMD

黑客星期四 Discord 頻道連結列表

hacking thursday discord channel list

announcements-通告
autoteamaker-自動泡茶器

jobboard-招募
submoloch
crypto-airdrop-賺加密貨幣
global-macro-全球宏觀經濟
crypto-invest-加密貨幣投資
eat-drink-吃吃喝喝
hack-news-資安快訊

foss-eff-自由軟體與網路
hardware-硬體
machine-learning-機器學習
clojure
ci-cd-隨便聊

social-news-社群消息
general-主頻道
bot-機器人
meme-迷因
welcome-and-guide
resources-資源分享
hack-黑客
八卦-rumors
meeting-plans-聚會規劃

原始資料

[<TextChannel id=806993895279296542 name='crypto-invest-加密貨幣投資' position=6 nsfw=False news=False category_id=819559047044399105>, <TextChannel id=808593596135374881 name='eat-drink-吃吃喝喝' position=20 nsfw=False news=False category_id=781442555409334304>, <TextChannel id=781442555409334307 name='hack-news-資安快訊' position=19 nsfw=False news=False category_id=781442555409334304>, <TextChannel id=822092352134185037 name='clojure' position=14 nsfw=False news=False category_id=814479788341067817>, <TextChannel id=807180971149361172 name='foss-eff-自由軟體與網路' position=9 nsfw=False news=False category_id=814479788341067817>, <TextChannel id=820026251367546881 name='submoloch' position=4 nsfw=False news=False category_id=819555251483836447>, <TextChannel id=819838178453225484 name='crypto-airdrop-賺加密貨幣' position=7 nsfw=False news=False category_id=819559047044399105>, <TextChannel id=811893151589597214 name='ci-cd-隨便聊' position=10 nsfw=False news=False category_id=814479788341067817>, <TextChannel id=819184859662385174 name='social-news-社群消息' position=21 nsfw=False news=False category_id=781442555409334304>, <TextChannel id=781442555409334305 name='general-主頻道' position=16 nsfw=False news=False category_id=781442555409334304>, <TextChannel id=807310501352308807 name='bot-機器人' position=11 nsfw=False news=False category_id=814479788341067817>, <TextChannel id=781442554951499781 name='announcements-通告' position=1 nsfw=False news=False category_id=781442554951499779>, <TextChannel id=819436839685062656 name='autoteamaker-自動泡茶器' position=3 nsfw=False news=False category_id=819555251483836447>, <TextChannel id=814480528035282944 name='hardware-硬體' position=12 nsfw=False news=False category_id=814479788341067817>, <TextChannel id=831832752755048509 name='machine-learning-機器學習' position=15 nsfw=False news=False category_id=814479788341067817>, <TextChannel id=819110608334094346 name='jobboard-招募' position=8 nsfw=False news=False category_id=819559047044399105>, <TextChannel id=819538973398663218 name='global-macro-全球宏觀經濟' position=5 nsfw=False news=False category_id=819559047044399105>, <TextChannel id=822027598242250783 name='meme-迷因' position=17 nsfw=False news=False category_id=781442555409334304>, <TextChannel id=781442554951499780 name='welcome-and-guide' position=0 nsfw=False news=False category_id=781442554951499779>, <TextChannel id=781442555409334303 name='resources-資源分享' position=2 nsfw=False news=False category_id=781442554951499779>, <TextChannel id=817014054949355592 name='hack-黑客' position=13 nsfw=False news=False category_id=814479788341067817>, <TextChannel id=855071822647001098 name='八卦-rumors' position=22 nsfw=False news=False category_id=781442555409334304>, <TextChannel id=781442555409334306 name='meeting-plans-聚會規劃' position=18 nsfw=False news=False category_id=781442555409334304>]

discord-list.py

import discord

class MyClient(discord.Client):
    async def on_ready(self):
        print('Logged on as {0}!'.format(self.user))

        text_channel_list = []
        for server in client.guilds:
            for channel in server.channels:
                if str(channel.type) == 'text':
                    text_channel_list.append(channel)
        print(text_channel_list)
 
client = MyClient()
client.run("token here")