From the course: Build with AI: Developing a Discord Bot Conversationally

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Universal bot basic demo

Universal bot basic demo

- [Instructor] Here we have the Universal Bot code base, and inside here we have the examples. Now there's lots of examples, the basic_bot, also YAML demos, et cetera. We're gonna take a look at the very first end-to-end test. This is what I would typically do when I build out a project, is make sure that I build out a cargo run example that goes through and exercises the basic functionality of what I'm building. Now in this case, if you take a look at what you would need to do to run it, it's pretty straightforward, right? You just type in basic_bot as your cargo run, and then if we scroll down here, we can step by step look at the code. So first up here we have a use, and this use statement has a, anyhow, we have tracing, and then we also have the core. So really the core itself here is doing all of the heavy lifting, and then if we look at this main function as well, you can see we have the main function as the entry…

Contents