calico-crusade / palringo-api-std

Palringo API re-written for .net standard.
MIT License
5 stars 1 forks source link

Default does not give any cmd #4

Closed ateeqarshad closed 5 years ago

ateeqarshad commented 6 years ago
[Default, Command("find")]
        public async void OnDefault(IPalBot bot, Message msg, string cmd)
        {
            String a = Default.;
            Console.WriteLine(a);

            var gifResponse = a;

            gifRequest(a);
            await bot.Reply(msg, gifToOutput);
            gifToOutput = "";
        }

CMD does not return anything. I have told Alec about this issue on Palringo.

calico-crusade commented 5 years ago

This is by design. Default will only be triggered if the message only matches the namespace. I don't believe this warrants attention as it breaks the flow of how the plugins work and could lead to unexpected behavior for other users.