You can just use the A1111 API along with a Discord bot library - Software Engineering Courses (SECourses)