GithubHelp home page GithubHelp logo

amino-net-group / amino.net Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 2.0 1.15 MB

An unofficial C# wrapper around Aminos REST API based on Amino.py!

License: MIT License

C# 100.00%
amino amino-api aminoapps botamino narvii aminopy samino aminofix api-wrapper amino-dotnet

amino.net's People

Contributors

fabiogaming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

amino.net's Issues

register_google wrong secret type

Client.register_google has an issue with creating an account or logging into one, the secret type is set to facebook even tho it should be 32

client.logout() bug

When I use client.logout(); I get this
image
I use it after client.login() (login is correct, because I can check information about profile). I was trying simple await, but nothing has changed.

help

#I saved message.content in a variable text and i want to use text outside the function i have tried to access the the function the subclient but onmessage even just went mad giving me these errors

##here is what i wanted to do first to make it easier on my self -->

static void Main(string[] args, Amino.Client client, Amino.SubClient ndcClient)
{

    client.onMessage += onMessageEvent;

    

    // Wait for user input to close the application
    Console.WriteLine("Press Enter to exit.");
    Console.ReadLine();


}

static void onMessageEvent(Amino.Objects.Message message,Amino.SubClient ndcClinent)
{
    var text = message.content;
    Console.WriteLine(message.content);

    if ( message.content == "hey")
{
    ndcClient.start_chat("907b17a7-5239-417f-9fd6-16cb309dbe32", "hey");
    ndcClient.send_message(chatId: message.chatId.ToString(), message: "heyhey");
}

}

Main(args, client,ndcClient);


##Error

No overload for 'onMessageEvent' matches delegate 'Action<Message>'
A static local function cannot contain a reference to 'this' or 'base'

#here what im trying to do as a solution but i have a lack of knowledge in c#

static void Main(string[] args, Amino.Client client, Amino.SubClient ndcClient)
{

    client.onMessage += onMessageEvent;

    

    // Wait for user input to close the application
    Console.WriteLine("Press Enter to exit.");
    Console.ReadLine();


}

static void onMessageEvent(Amino.Objects.Message message)
{
    var text = message.content;
    Console.WriteLine(message.content);

}

Main(args, client,ndcClient);

if ( text== "hey")
{
    ndcClient.start_chat("907b17a7-5239-417f-9fd6-16cb309dbe32", "hey");
    ndcClient.send_message(chatId: chatId.ToString(), message: "heyhey");
}

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.