Code Monkey home page Code Monkey logo

crow's Introduction

Crow

Discord API library written in C.

Tested on Fedora.

This software is under heavy development and very unstable so I don't recommend to use it.

Used libraries (thanks <3)

Implemented

  • Channel
    • Get Channel
    • Modify Channel
    • Delete/Close Channel
    • Get Channel Messages
    • Get Channel Message
    • Create Message
    • Create Reaction
    • Delete Own Reaction
    • Delete User Reaction
    • Get Reactions
    • Delete All Reactions
    • Edit Message
    • Delete Message
    • Bulk Delete Messages
    • Edit Channel Permissions
    • Get Channel Invites
    • Create Channel Invite
    • Delete Channel Permission
    • Trigger Typing Indicator
    • Get Pinned Messages
    • Add Pinned Channel Message
    • Delete Pinned Channel Message
    • Group DM Add Recipient
    • Group DM Remove Recipient
  • Guild (nothing implemented yet)
  • Invite (nothing implemented yet)
  • User (nothing implemented yet)
  • Voice (nothing implemented yet)
  • Webhook (nothing implemented yet and not planned)

Installation

NOTE: This guide is outdated.

This is an example for installation on debian-based linux distributions.

First you need a build essentials. Install it with apt.

apt-get install build-essentials # gcc, make etc...

Then you'll need some libraries:

apt-get install libjson-c-dev # JSON library

apt-get install libcurl4-openssl-dev # CURL with SSL support

After library installation clone this repository with submodules:

git clone --recursive https://github.com/TrueMemer/Crow.git

cd Crow

Execute the following commands:

make

To run bot execute ./crow.

Usage

You can create file .crowrc in your home directory with following syntax:

bot_prefix=!!
token=MjIzMDQyOTM0NjA0MzAwMjg5.DGyFPA.QUJzunfPjC2ajfnj9qSyocsNFAW

Just replace token and bot_prefix with yours.

You can also provide token via argument like this:

./crow --token=MjIzMDQyOTM0NjA0MzAwMjg5.DGyFPA.QUJzunfPjC2ajfnj9qSyocsNFAW

But you can't provide bot prefix this way. There is also flag -s which saves current token and bot prefix to your .crowrc file. Default prefix is ??.

crow's People

Contributors

truememer avatar ivan2002 avatar rndtrash avatar

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.