1.4.1 • Published 12 months ago

touchguild v1.4.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 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.4.2-dev.3f2dce8

12 months ago

1.4.2-dev.7fdf889

12 months ago

1.4.2-dev.1ad43ac

12 months ago

1.4.1

1 year ago

1.4.0

1 year ago

1.2.5

1 year ago

1.3.0

1 year ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

3 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