1.2.4 • Published 7 days ago

touchguild v1.2.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 days 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.2.4

5 months ago

1.2.3

8 months ago

1.2.4-dev.5a720d5

7 months ago

1.2.3-dev.fd2c26d

11 months ago

1.2.3-dev.1c688d6

11 months ago

1.2.3-dev.6cca4bd

11 months ago

1.2.3-dev.4704501

11 months ago

1.2.3-dev.e89c15d

8 months ago

1.2.3-dev.d0105c2

11 months ago

1.2.3-dev.a0b92c6

8 months ago

1.2.3-dev.8a73a7f

11 months ago

1.2.4-dev.09a3405

8 months ago

1.2.3-dev.ab0b256

11 months ago

1.2.3-dev.dda6d8f

11 months ago

1.2.4-dev.78279f3

8 months ago

1.2.2

1 year ago

1.2.3-dev.9b90e7c

12 months ago

1.2.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.2.1

1 year ago

1.0.3

1 year ago

0.1.7-nightly.0

1 year ago

0.1.7-nightly

1 year ago

0.1.7

1 year ago

0.1.6-nightly.0

2 years ago

0.1.6-nightly.1

2 years ago

0.1.6-nightly.2

2 years ago

1.1.0

1 year ago

0.1.6-test.16

1 year ago

0.1.6-test.2

2 years ago

0.1.6-test.3

2 years ago

0.1.6-test.0

2 years ago

0.1.6-test.1

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago