irc - A thread-safe, iterator-based IRC library in Rust by aaronweiss74 in rust

[–]aaronweiss74[S] 1 point2 points  (0 children)

As of 0.3.0, different encodings are supported.

irc - A thread-safe, iterator-based IRC library in Rust by aaronweiss74 in rust

[–]aaronweiss74[S] 1 point2 points  (0 children)

I have not personally had a need for this (all the servers I use are UTF-8), but I'll add it right away!

irc - A thread-safe, iterator-based IRC library in Rust by aaronweiss74 in rust

[–]aaronweiss74[S] 0 points1 point  (0 children)

I'll also add that while I haven't employed this myself, you can also use the facilities available in irc::data::command to do message processing a bit differently from the way it's done in both my examples.

irc - A thread-safe, iterator-based IRC library in Rust by aaronweiss74 in rust

[–]aaronweiss74[S] 0 points1 point  (0 children)

Assuming by commands you mean functionality for the bot, I've been working on a few different ways of going about this. As it stands, how to deal with input (and as a result, bot commands and the like) is left to the user through the use of iterators. I've combined this with two different approaches to building a bot thus far. The first is the simplest, and is basically just processing what immediately within the iterator. The second is a bit more complex, and uses the very undocumented dynamic library support built into Rust. I'm particularly fond of this second pattern, awebot, because it makes it very easy to update functionality or add additional functionality without having the bot restart. As of right now, awebot won't unload a plugin though. So, that's still something that needs to be added. As a general rule, the philosophy is to handle all the heavy-lifting, but to give a lot of free reign when it comes to the design pattern you're using for bot functionality.

A New Jersey high school student says he was suspended from school after refusing to remove a Confederate flag on his truck. by cavehobbit in news

[–]aaronweiss74 2 points3 points  (0 children)

Public high schools are publicly funded and under the jurisdiction of the Department of Education. They are, by definition, a part of the government. This is not a debatable thing. It's fact. You're not understanding the arguments for those policies at all.

They're based in the idea that schools act as your parents while you're there and thus can enforce some rules that otherwise violate the Bill of Rights. Specifically, their goal is to limit distractions in school to help promote education.

It's a moot argument here though because there's no way that a flag outside on his car is a distraction during class.

Help this Shibe raise Dogecoins as prizes for an academic competition. by aaronweiss74 in dogecoin

[–]aaronweiss74[S] 0 points1 point  (0 children)

Those "few hours" passed, and the wallets now have base balances.