GithubHelp home page GithubHelp logo

dinographicpixels / touchguild Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 6.0 17.88 MB

TouchGuild is a NodeJS library for interfacing with Guilded.

Home Page: https://touchguild.com

License: Apache License 2.0

TypeScript 97.39% JavaScript 2.61%
guilded guilded-api guilded-api-wrapper guilded-bot guilded-bots guilded-js guildedgg library guilded-library javascript

touchguild's Introduction


const { Client } = require("touchguild");
const client = new Client({ token: "TOKEN" });

client.on("ready", () => {
    console.log(`Logged as ${client.user.username}`);
});

client.on('error', (err) => {
    console.error(err);
});

client.connect();

For more examples, check out the examples folder on GitHub.


Installation

NodeJS 16.16.0 or higher is required. Check out Development Builds if you wish to install in-dev versions.

npm install touchguild

Development Builds

npm install touchguild@dev

The documentation under dev is always for the latest commit. If something isn't working that's in the documentation, you're likely looking at the wrong documentation.


Links:

touchguild's People

Contributors

pakkographic avatar raphckrman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

touchguild's Issues

ForumTopic.edit() does not work.

Before fix:

return new ForumTopic(response.data.forumTopic, this);

After fix:

return new ForumTopic(response.data.forumTopic, this._client);

We're working on a new developer branch commit that fixes & enhances the whole library. It may take some time.
You can edit the TouchGuild's code to fix this issue for the time being.

High latency

Seems like TouchGuild is having high latency issues.

I've saw a high difference of latency between TouchGuild and other libraries.

  • The time to detect a message is around 1 second.
  • The time to send a message is around 1 second.
    This equals a high latency, it has 2 seconds delay between the time you send a message and the bot's reply.

We're working on it, and may result in a major update.

Information about webhooksCreate

webhooksCreate is a 'pre-create' event.

The webhooksCreate event is triggered when you're in the context menu, editing the name, and other information about the webhook. It means that it is triggered before you actually create the webhook. That is why, you can't edit the webhook's name.

Conclusion

If you'd like to edit the name of a new webhook, use the webhooksUpdate event. The webhooksUpdate event is triggered each time you actually create or update a webhook, so you can edit it.

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.