1.4.1 • Published 11 months ago

touchguild v1.4.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

TouchGuild is a library that supports TS, JS (cjs and esm) and it was built to let you interface with the Guilded API. It has easy & predictable types, some of them are inspired by Discord Eris.


Early access library

The library recently launched and we need to make sure that you do not encounter bugs, that's why, we're realsing it in Early access. When TouchGuild will be stable enough, we'll switch to 'B.E.T.A' since the Guilded API is still in early access.

NIGHTLY BUILD

Be aware that Nightly builds aren't stable and can have still have major bugs. If you face issues, feel free to report it by creating an issue on TouchGuild's GitHub, please specify that you're using a Nightly build.

What's new on Nightly builds?

Check docs/nightly for more details about new features: https://docs.touchguild.dinographicpixels.com/nightly/features

Guide, documentation & even more

Everything's to help you to get started, to create an incredible guilded bot through our Library.

Links:

🌟 Get started

Get started, it's easy.

NodeJS 16.16.0 or higher is required.

Installation (Nightly)

Install the package with NPM through GitHub:

npm install dinographicpixels/touchguild#nightly

Install the package through NPM:

npm install touchguild@nightly

Basic scripting (ping, pong!)

Let's get started, it'll be easy examples for ya!

For example, we'll create a simple ping pong script, a well known command!

Javascript & Typescript:

const TouchGuild = require('TouchGuild') // import for CommonJS
// import * as TouchGuild from 'TouchGuild' // import for ESM & TS

const Client = new TouchGuild.Client({token: 'insert token here'}) // create client

Client.connect();

Client.on('messageCreate', (message)=> {
    // Detects when a message is created and executes the code here.
    if (message.member.bot == true) return; // ignores bot messages.
    if (message.content == '!ping'){
        // if the message command is !ping, it executes the code here.
        message.createMessage({content: 'pong!'}); // create a message.
    }
});

Install stable builds

Install stable builds with npm:

npm install touchguild@latest

Install stable builds with yarn:

yarn add touchguild
1.3.1-dev.78eb85f

12 months ago

1.3.1-dev.fc02b37

12 months ago

1.4.2-dev.3f2dce8

11 months ago

1.4.1-dev.bf13107

12 months ago

1.4.2-dev.7fdf889

11 months ago

1.4.2-dev.1092a9b

11 months ago

1.4.2-dev.1ad43ac

11 months ago

1.4.1

11 months ago

1.4.0

12 months ago

1.3.1-dev.ef07343

12 months ago

1.3.1-dev.9da4fe9

12 months ago

1.3.1-dev.83e25c6

12 months ago

1.3.1-dev.f00b6a4

12 months ago

1.3.1-dev.65bf888

12 months ago

1.3.1-dev.8b966e7

12 months ago

1.3.1-dev.05d058c

12 months ago

1.4.1-dev.550e0f8

12 months ago

1.3.1-dev.e350de8

12 months ago

1.3.1-dev.e2c6cf9

12 months ago

1.3.1-dev.8d09b8a

12 months ago

1.3.1-dev.8142605

12 months ago

1.4.1-dev.026fc48

11 months ago

1.4.2-dev.911fc21

11 months ago

1.2.5

1 year ago

1.3.1-dev.293dec5

12 months ago

1.3.0

1 year ago

1.3.1-dev.7386c63

12 months ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.2.1

3 years ago

1.0.3

3 years ago

0.1.7-nightly.0

3 years ago

0.1.7-nightly

3 years ago

0.1.7

3 years ago

0.1.6-nightly.0

3 years ago

0.1.6-nightly.1

3 years ago

0.1.6-nightly.2

3 years ago

1.1.0

3 years ago

0.1.6-test.16

3 years ago

0.1.6-test.2

3 years ago

0.1.6-test.3

3 years ago

0.1.6-test.0

3 years ago

0.1.6-test.1

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago