AuroraEditor / AuroraEditorDiscordBot

Aurora Editor Discord Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

Aurora Editor Discord Bot

Twitter Follow Discord


This is the repository for the Aurora Editor discord bot. This bot is used to provide information about the editor and the community.

Run

create a config.json file in the root directory with the following contents:

{
    "settings": {
        "stats": [
            "stars",
            "forks",
            "watchers",
            "open_issues"
        ]
    },
    "github": {
        "url": "https://api.github.com/users/AuroraEditor/repos",
        "token": "GITHUB_TOKEN",
        "repos": [
            "AuroraEditor",
            "auroraeditor.com"
        ]
    },
    "discord": {
        "webhook": "WEBHOOK_URL",
        "tag": ROLE_ID_NUMERIC,
        "tagtreshold": 24,
        "username": "AuroraEditor",
        "avatar": "https://avatars.githubusercontent.com/u/123369531?v=4",
        "title": "Aurora Editor Stats",
        "description": "These are the statistics for [%s](https://github.com/%s),\r\nupdated on %s.",
        "url": "https://auroraeditor.com"
    }
}

Note
Change GITHUB_TOKEN, WEBHOOK_URL, ROLE_ID_NUMERIC to your own values.

Please note GITHUB_TOKEN is optional but adviced.

Run it using:

swift AuroraDiscordSummary.swift

About

Aurora Editor Discord Bot

License:MIT License


Languages

Language:Swift 100.0%