Giter Club home page Giter Club logo

discord-swift-bot's Introduction

Discord Bot written in Swift

This bot will replace the existing one for the friends discord channel. The main function of the bot is that it fetches news from DN.se. There are two commands to get the news: - 'idag': fetches the latest 5 news from dn.se/nyhetsdygnet - 'bootycall': fetches the top 5 popular news from dn.se/

USE PR WHEN UPDATING CODE

TODO:

[] Get the bot connected to a Discord Server
[] Add simple command to the bot (like !ping and the bot can answer with pong!)
[] Scrapping a website with Swift
[] Clean the fetched HTML-code to get interesting info 
[] Do a command that gets the news from dn.se

discord-swift-bot's People

Contributors

c0ldbear avatar

Stargazers

 avatar

Watchers

 avatar

discord-swift-bot's Issues

Remove unused code

Remove code that is not in use and unecessary for the bot to work. Some cleaning is needed.

Get specific XKCD comic with number

If a number is given that is outside of the range of number of comics, take the latest and an "error message" from the bot, something on the lines: "Sorry, that comic does not exist. Here is the latest comic!" :)

Change filenames

Change filenames, e.g.
commands.swift -> Commands.swift
xkcd.swift -> Xkcd.swift

Create 'Commands' enum

Use enum for the bot commands to minimize the risk of misspelling the bot commands when checking channel messages for bot commands.

One file for xkcd-command

Merge the two xkcd-files to one file and check if the macOS version is compatible with using async-await or not, instead of having two files for same functionality.

Easier to maintain then.

Use Embed for !xkcd command

Use 'Embed' for the returned bot message of the '!xkcd' command so that the comic is embedded instead of using Discords auto embedding function so that the link is to xkcd.com instead of the comic image.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.